fluent-plugin-filter-kv-parser

A Fluentd filter plugin to parse key value items

Requirements

Fluentd >= v0.12

Install

Use RubyGems:

gem install fluent-plugin-filter-kv-parser

Configuration Examples

<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>

ChangeLog

See CHANGELOG.md for details.

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

Copyright

Copyright (c) 2015 Naotoshi Seo. See LICENSE for details.