https://github.com/toyama0919/fluent-plugin-presto_query
https://github.com/toyama0919/fluent-plugin-presto_query
Last synced: 2 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/toyama0919/fluent-plugin-presto_query
- Owner: toyama0919
- Created: 2015-05-13T09:14:05.000Z (about 10 years ago)
- Default Branch: master
- Last Pushed: 2015-06-02T01:12:47.000Z (almost 10 years ago)
- Last Synced: 2025-01-18T10:42:39.053Z (4 months ago)
- Language: Ruby
- Size: 141 KB
- Stars: 0
- Watchers: 3
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# fluent-plugin-presto_query [](http://travis-ci.org/toyama0919/fluent-plugin-presto_query)
Query to [Presto](https://prestodb.io/) plugin for fluentd
## Examples
```type presto_query
tag presto_query.exsample
host presto-cordinator
catalog store
schema public
sql select user_id, count(*) as cnt from db01.schema.conversion where user_id is not null group by user_id having count(*) > 1000
cron 0 * * * * # You can query at a given time, with cron syntax.type stdout
```
#### output
```
2015-05-12 16:01:02 +0900 presto_query.exsample: {"user_id":1000,"cnt":3906}
2015-05-12 16:01:02 +0900 presto_query.exsample: {"user_id":2000,"cnt":1348}
2015-05-12 16:01:02 +0900 presto_query.exsample: {"user_id":3000,"cnt":1167}
2015-05-12 16:01:02 +0900 presto_query.exsample: {"user_id":4000,"cnt":1503}
2015-05-12 16:01:02 +0900 presto_query.exsample: {"user_id":5000,"cnt":1689}
2015-05-12 16:01:02 +0900 presto_query.exsample: {"user_id":6000,"cnt":1199}
2015-05-12 16:01:02 +0900 presto_query.exsample: {"user_id":7000,"cnt":1182}
2015-05-12 16:01:02 +0900 presto_query.exsample: {"user_id":8000,"cnt":1079}
2015-05-12 16:01:02 +0900 presto_query.exsample: {"user_id":9000,"cnt":2455}
...
```## parameter
#TODO## Installation
```
fluent-gem install fluent-plugin-presto_query
```## Contributing
1. Fork it
2. Create your feature branch (`git checkout -b my-new-feature`)
3. Commit your changes (`git commit -am 'Add some feature'`)
4. Push to the branch (`git push origin my-new-feature`)
5. Create new [Pull Request](../../pull/new/master)## Information
* [Homepage](https://github.com/toyama0919/fluent-plugin-presto_query)
* [Issues](https://github.com/toyama0919/fluent-plugin-presto_query/issues)
* [Documentation](http://rubydoc.info/gems/fluent-plugin-presto_query/frames)
* [Email](mailto:[email protected])## Copyright
Copyright (c) 2015 Hiroshi Toyama