I am not familiar with c language, kafka output-plugin when producing messages, how is the message timestamp set? Is it the time the log was read or the time the message was created? #8890
Answered
by
patrick-stephens
1123183721
asked this question in
Q&A
-
I am not familiar with c language, kafka output-plugin when producing messages, how is the message timestamp set? Is it the time the log was read or the time the message was created? |
Beta Was this translation helpful? Give feedback.
Answered by
patrick-stephens
May 29, 2024
Replies: 1 comment
-
It's whatever you tell it to parse (not all inputs are log files remember) so either you parse it from the input or it defaults to the current time when the input record is created. https://docs.fluentbit.io/manual/concepts/key-concepts#timestamp does say this at the bottom too - there's no need to understand the code just check the docs. |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
1123183721
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
It's whatever you tell it to parse (not all inputs are log files remember) so either you parse it from the input or it defaults to the current time when the input record is created.
https://docs.fluentbit.io/manual/concepts/key-concepts#timestamp does say this at the bottom too - there's no need to understand the code just check the docs.