fluent-plugin-filter_keys
Overview
Fluentd plugin to filter if a specific key is present or not in event logs.
Installation
$ gem install fluent-plugin-filter_keys
Configuration
<match test.**>
type filter_keys
add_tag_prefix filter_keys.
ensure_keys foo, bar
</match>
<match test.**>
type filter_keys
add_tag_prefix filter_keys.
denied_keys foo, bar
</match>
ensure_keys
Keys to be existed in a event log. If it doesn't match, the event log will be discarded.
denied_keys
Keys to be not existed in a event log. If it matches, the event log will be discarded.
add_tag_and_reemit
Default false. if this configure parameter is true and doesn't match keys, add tag 'discarded' and reemit.
Contributing
- Fork it
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am 'Add some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create new Pull Request