Time_Key
is dropped even when not parsed successfully in json parser
#7322
Labels
Time_Key
is dropped even when not parsed successfully in json parser
#7322
Bug Report
Describe the bug
In the parser configuration docs: https://github.com/fluent/fluent-bit-docs/blob/4f06d31577aa476cf888d2829f94d84e6d1c323d/pipeline/parsers/configuring-parser.md#configuration-parameters
The
Time_Keep
field documentation says the following:This implies to me that if the time value fails to parse, the key should not be dropped. This is not the case with the
json
parser. If a time value fails to parse, theTime_Key
is dropped regardless.To Reproduce
Configured on a pipeline however you'd like, it's not really important. As long as it reads the example log line above and has a valid output you'll be able to see the result.
Expected behavior
time
should still be present because it will fail to parse with the givenTime_Format
.Your Environment
master
branchAdditional context
It is possible that this is intended behaviour and that the docs are simply misleading and need an update, however I think it makes sense that the
Time_Key
would be kept if parsing fails.The text was updated successfully, but these errors were encountered: