No commit activity in last 3 years
No release in over 3 years
Fluentd filter plugin that Explode record to single key record.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
 Dependencies

Development

~> 1.14
~> 12.0
~> 3.0

Runtime

< 2, >= 0.14.10
 Project Readme

fluent-plugin-filter-single_key

Fluentd filter plugin that Explode record to single key record.

Installation

RubyGems

$ gem install fluent-plugin-filter-single_key

Bundler

Add following line to your Gemfile:

gem "fluent-plugin-filter-single_key"

And then execute:

$ bundle

Configuration

key_pattern (string) (required)

regexp pattern for target key

keep_key_pattern (string) (optional)

regexp pattern for keep key

new_key (string) (optional)

If this param is set, replace this value as new key

You can copy and paste generated documents here.

Sample

Config

<filter sample.tag>
  key_pattern foo(\d)
  new_key bar\1
  keep_key_pattern other1
</filter>

Incoming Record

{"foo1" => 1, "foo2" => 2, "other1" => 99, "other2" => 100}

Outgoing Record

{"bar1" => 1, "other1" => 99}
{"bar2" => 2, "other1" => 99}
{"bar3" => 3, "other1" => 99}

Copyright

  • Copyright(c) 2017- joker1007
  • License
    • MIT