A Fluentd filter plugin to parse key value items
Fluentd >= v0.12
Use RubyGems:
gem install fluent-plugin-filter-kv-parser
<filter **>
type key_value_parser
key log
use_regex true
remove_key false
remove_prefix /^prefix/
keys_delimiter /\s+/
kv_delimiter_char '='
filtered_keys akey,bkey,ckey
filtered_keys_regex /^sub_[a-zA-Z_0-9]+/
filter_out_lines_without_keys false
keys_prefix prefix
</filter>
<match **>
type stdout
</match>
See CHANGELOG.md for details.
- 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
Copyright (c) 2015 Naotoshi Seo. See LICENSE for details.