Fluent filter plugin to split array
gem install fluent-plugin-split-array
fluent-plugin-script | fluentd |
---|---|
>= 0.1.0 | >= v0.14.0 |
< 0.0.2 | < v0.14.0 |
<filter foo.bar.*>
type split_array
</filter>
[{'a' => 'b'}, {'a' => 'c'}]
{'a' => 'b'}
{'a' => 'c'}
<filter foo.bar.*>
type split_array
split_key records
</filter>
{"requestId":"034f","timestamp":1578090901599,"records":[{"data":"Log entry 1"},{"data":"Log entry 2"}]}
{'data' => 'Log entry 1'}
{'data' => 'Log entry 2'}
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>