json
parser plugin parses JSON logs. One JSON map per line.json_parser
json_parser oj
by default, The oj
gem must be installed separately. This is because oj
gem is not required from fluentd by default. If oj
gem is not installed, yajl
is used as a fallback.oj
: Faster json parseryajl
: Mainly for stream parsingjson
: Standard bundled librarystream_buffer_size
time_type
json
parser changes the default value of time_type
to float
. If you want to parse string field, set time_type
and time_format
like this: