Sha256: c2fcb18bfa138fca76484599db272f2bfc29022120aa5cb0f1eb7eaa53133f53
Contents?: true
Size: 1.43 KB
Versions: 2
Compression:
Stored size: 1.43 KB
Contents
# fluent-plugin-dedup A fluentd plugin to suppress emission of subsequent logs identical to the first one. [![Build Status](https://travis-ci.org/edvakf/fluent-plugin-dedup.svg?branch=master)](https://travis-ci.org/edvakf/fluent-plugin-dedup) ## Example Usage It's useful when the output of a command executed by `in_exec` only returns the "latest" state of something and you want to send logs only when there is a change. <source> type exec command latest_state_of_something.rb format json keys unique_id,foo,bar tag some.thing run_interval 1s </source> <match some.thing> type dedup key unique_id # required file /tmp/dedup_state.json # optional. If set, saves the state to the file. </match> <match dedup.some.thing> type stdout </match> All logs that are processed by this plugin will have tag prefix `dedup`. If the optional `file` parameter is set, it dumps the state during shutdown and loads on start, so that it can still dedup after reload. ## Testing bundle install bundle exec rake test ## Installation gem install fluent-plugin-dedup ## Contributing 1. Fork it ( https://github.com/[my-github-username]/fluent-plugin-dedup/fork ) 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 a new Pull Request
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
fluent-plugin-dedup-0.2.0 | README.md |
fluent-plugin-dedup-0.1.0 | README.md |