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

Development

>= 12.3.3
~> 3.1

Runtime

>= 0.14.0, < 2
 Project Readme

fluent-plugin-split-array

Fluent filter plugin to split array

Build Status Gem

install

gem install fluent-plugin-split-array

Requirements

fluent-plugin-script fluentd
>= 0.1.0 >= v0.14.0
< 0.0.2 < v0.14.0

Configuration Example

Example 1

<filter foo.bar.*>
  type split_array
</filter>

input

[{'a' => 'b'}, {'a' => 'c'}]

output

{'a' => 'b'}
{'a' => 'c'}

Example 2

<filter foo.bar.*>
  type split_array
  split_key records
</filter>

input

{"requestId":"034f","timestamp":1578090901599,"records":[{"data":"Log entry 1"},{"data":"Log entry 2"}]}

output

{'data' => 'Log entry 1'}
{'data' => 'Log entry 2'}

Example 3

fluent.conf

Monitoring RabbitMQ all queues status

<source>
  type exec
  command curl -s -u guest:gutest http://127.0.0.1:15672/api/queues
  format json
  tag rabbitmq
  run_interval 10s
</source>

<filter rabbitmq>
  type split_array
</filter>

<match rabbitmq>
  type stdout
</match>