https://github.com/fluent-plugins-nursery/fluent-plugin-flowcounter-simple
Simple Fluentd Plugin to count number of messages and outputs to log
https://github.com/fluent-plugins-nursery/fluent-plugin-flowcounter-simple
fluentd-filter-plugin fluentd-output-plugin fluentd-plugin v10 v12 v14
Last synced: about 1 year ago
JSON representation
Simple Fluentd Plugin to count number of messages and outputs to log
- Host: GitHub
- URL: https://github.com/fluent-plugins-nursery/fluent-plugin-flowcounter-simple
- Owner: fluent-plugins-nursery
- License: mit
- Created: 2013-11-20T16:04:30.000Z (over 12 years ago)
- Default Branch: master
- Last Pushed: 2025-02-12T01:07:59.000Z (over 1 year ago)
- Last Synced: 2025-05-09T02:16:20.354Z (about 1 year ago)
- Topics: fluentd-filter-plugin, fluentd-output-plugin, fluentd-plugin, v10, v12, v14
- Language: Ruby
- Homepage:
- Size: 26.4 KB
- Stars: 2
- Watchers: 2
- Forks: 3
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE.txt
Awesome Lists containing this project
README
# fluent-plugin-flowcounter-simple [](http://travis-ci.org/sonots/fluent-plugin-flowcounter-simple)
Simple Fluentd Plugin to count number of messages and outputs to log
## Requirements
| fluent-plugin-flowcounter-simple | fluentd | ruby |
|-------------------|---------|------|
| >= 0.1.0 | >= v1.0 | >= 2.4 |
| < 0.0.4 | >= v0.12.0 | >= 2.1 |
## Filter Plugin Configuration
```apache
type flowcounter_simple
unit second
```
This filter plugin pass through records, and writes counts into the log file as
plugin:out_flowcounter_simple count:30 indicator:num unit:second
## Output Plugin Configuration
type flowcounter_simple
unit second
This plugin does not emit, just writes counts into the log file as
plugin:out_flowcounter_simple count:30 indicator:num unit:second
## Parameters
- unit
One of second/minute/hour/day. Default: minute
- indicator
One of num/byte. Default: num
- comment
Just a comment. You may use this to mark where you put flowcounter_simple.
## Relatives
There is a [fluent-plugin-flowcounter](https://github.com/tagomoris/fluent-plugin-flowcounter),
but I needed a very very simple plugin to use for performance evaluation.
## 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)
## Copyright
Copyright (c) 2013 Naotoshi Seo. See [LICENSE.txt](LICENSE.txt) for details.