fluent-plugin-to_s

Plugin that adds whole record to to_s field

Installation

gem install fluent-plugin-to_s

Usage

<match test.**>
  type to_s
  tag_prefix string
  field_name to_string
</match>

following inputs are coming:

test.hoge {"data":"wef"}

then output becomes as belows

string.test.hoge {"data":"wef", "to_string":"{\"data\":\"wef\"}"}