how parse springboot multiline log #5430
Replies: 4 comments 3 replies
-
Hi @suinxinliulang
|
Beta Was this translation helpful? Give feedback.
-
Hi @suinxinliulang , This is a tough one I just solved after working on it for the past few days. So far it seems to always work with Springboot logs, here are my set of rules:
I haven't tested my list of rules thoroughly, please let me know if there is any unexpected behavior. There is a minor issue which is that the last empty line won't be captured. I am not sure how this could be achieved without some sort of final_state rule. In addition to the above, an issue I am having from this is that the last line always seems to be buffered and does not get flushed. If anybody has a solution for that I am taking. @lecaros
The goal should be to group this stacktrace, with the empty line above, as well as with the properly standardised log entry ensuring that the stacktrace belongs to an entry with parsable values. |
Beta Was this translation helpful? Give feedback.
-
What implementation of logger are you using? That extra empty line seems odd to me. |
Beta Was this translation helpful? Give feedback.
-
Hi for the repro @RaJiska.
parsers:
sample.log
Still need to figure out if this should be added to the built-in java parser. |
Beta Was this translation helpful? Give feedback.
-
I want use fluent-bit collect multiline log, but my test result not like demo in offical manual.
my log file content:
fluent-bit.conf and parse.conf
fluent bit print result
Beta Was this translation helpful? Give feedback.
All reactions