No commit activity in last 3 years
No release in over 3 years
output split array plugin for fluentd
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

>= 0.9.2

Runtime

 Project Readme

fluent-plugin-record_splitter

Output split array plugin for fluentd.

Dependence

  • td-agent v2(fluentd ~> 0.12.0)
    • fluent-plugin-record_splitter < 0.1.6
  • td-agnet v3(fluentd ~> 0.14.0)
    • fluent-plugin-record_splitter >= 0.1.6

Installation

gem install fluent-plugin-record_splitter

Configuration

<match pattern>
  type record_splitter
  tag foo.split
  split_key target_field
  keep_keys ["common","general"]
</match>

If following record is passed:

{'common':'c', 'general':'g', 'other':'foo', 'target_field':[ {'k1':'v1'}, {'k2':'v2'} ] }

then you got new records like below:

{'common':'c', 'general':'g', 'k1':'v1'}
{'common':'c', 'general':'g', 'k2':'v2'}

another configuration

<match pattern>
  type record_splitter
  tag foo.split
  split_key target_field
  keep_other_key true
  remove_keys ["general"]
</match>

If following record is passed:

{'common':'c', 'general':'g', 'other':'foo', 'target_field':[ {'k1':'v1'}, {'k2':'v2'} ] }

then you got new records like below:

{'common':'c', 'other':'foo', 'k1':'v1'}
{'common':'c', 'other':'foo', 'k2':'v2'}

Copyright

Author Yuri Odagiri
Copyright Copyright (c) 2015- Yuri Odagiri
License MIT License