https://github.com/toyama0919/fluent-plugin-exec_cron
https://github.com/toyama0919/fluent-plugin-exec_cron
Last synced: 3 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/toyama0919/fluent-plugin-exec_cron
- Owner: toyama0919
- Created: 2015-05-27T04:42:11.000Z (almost 10 years ago)
- Default Branch: master
- Last Pushed: 2016-01-18T01:25:26.000Z (over 9 years ago)
- Last Synced: 2024-04-24T21:01:16.336Z (about 1 year ago)
- Language: Ruby
- Size: 10.7 KB
- Stars: 6
- Watchers: 3
- Forks: 3
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# fluent-plugin-exec_cron [](http://travis-ci.org/toyama0919/fluent-plugin-exec_cron)
executes external programs with cron syntax.
## Examples
### minutely
```type exec_cron
tag exec_cron.example
command echo '{"a":"a"}'
format json
cron * * * * *
graceful_shutdown falsetype stdout
```
#### output
```
2015-05-27 13:07:00 +0900 exec_cron.example: {"a":"a"}
2015-05-27 13:08:00 +0900 exec_cron.example: {"a":"a"}
2015-05-27 13:09:00 +0900 exec_cron.example: {"a":"a"}
2015-05-27 13:10:00 +0900 exec_cron.example: {"a":"a"}
2015-05-27 13:11:00 +0900 exec_cron.example: {"a":"a"}
2015-05-27 13:12:00 +0900 exec_cron.example: {"a":"a"}
```### hourly
```type exec_cron
tag exec_cron.example
command echo '{"a":"a"}'
format json
cron 0 * * * *
graceful_shutdown truetype stdout
```
#### output
```
2015-05-27 12:00:00 +0900 exec_cron.example: {"a":"a"}
2015-05-27 13:00:00 +0900 exec_cron.example: {"a":"a"}
```## Installation
```
sudo td-agent-gem install fluent-plugin-exec_cron
```## 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-exec_cron)
* [Issues](https://github.com/toyama0919/fluent-plugin-exec_cron/issues)
* [Documentation](http://rubydoc.info/gems/fluent-plugin-exec_cron/frames)
* [Email](mailto:[email protected])## Copyright
Copyright (c) 2015 Hiroshi Toyama