fluent-plugin-record-serializer

fluentd filter plugin that serialize a record.

Build Status Code Climate

If following record is passed:

{"message": "hello world!"}

then you got new record like below:

{"tag": "pattern", "payload": "{\"message\": \"hello world!\"}"}

Installation

Install with gem or fluent-gem command as:

# for fluentd
$ gem install fluent-plugin-record-serializer

# for td-agent
$ sudo /usr/lib64/fluent/ruby/bin/fluent-gem install fluent-plugin-record-serializer

Configuration

In v0.12, you can use record_modifier filter.

<filter pattern>
  type record_serializer
</filter>

In v0.10, you can use record_serializer output to emulate filter.

<match pattern>
  type record_serializer
  tag serialized.pattern
</match>
  • Copyright
    • Copyright(C) 2015- IKUTA Masahito (cooldaemon)
  • License
    • Apache License, Version 2.0