I am writing out json structured log messages to stdout with exactly one time field, called origin_timestamp
.
I collect the log messages using Fluent Bit with the tail input plugin, which uses the parser docker
. The parser is configured with the Time_Key time
.
The documentation about Time_Key
says:
If the log entry provides a field with a timestamp, this option specify the name of that field.
Since time
!= origin_timestamp
, I would have thought no time fields will be added by Fluent Bit, however the final log messages ending up in Elasticsearch have the following time fields:
- (
origin_timestamp
within the field log that contains the original log message) origin_timestamp
time
@timestamp
(sometimes even multiple times).
The @timestamp
field is probably added by the es output plugin I am using in Fluent Bit, but where the heck is the time
field coming from?