fluent / fluentd-docs

This repository is deprecated. Go to fluentd-docs-gitbook repository.
49 stars 119 forks source link

JSON Parser implementation and documentation mismatch #596

Closed taraspos closed 5 years ago

taraspos commented 5 years ago

Hello, I faced unexpected behavior from fluentd JSON parser, because of the parse documentation and actual implementation of JSON parser differs.

Long story short, fluentd picked event time from json key time, when I expected it to use the current time:

Documentation says:

time_key (string) (optional): Specify time field for event time. If the event doesn’t have this field, current time is used.

  • Default: nil

Implementation says:

config_set_default :time_key, 'time'

fujimotos commented 5 years ago

The documentation has been fixed by #597. Thanks for pointing out the flaw.