-
Notifications
You must be signed in to change notification settings - Fork 1.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
parser java exception does not work #1400
Comments
@ZMMWMY Did you ever find a solution here? This is easy in fluentd https://docs.fluentd.org/parser/multiline but apparently not so much in fluent-bit |
I seem to have managed to get the wanted behaviour by just specifying |
@apollo13 can you share your config? |
@floriankoch I currently have the following (some things obfuscated):
The regex ensures that every line starting with a timestamp becomes a new log entry. All other lines are concatenated to the "log" key. |
@apollo13 thx, trying to solve the same Problem atm |
@floriankoch Let me know if you find any improvements to my approach |
@apollo13 the regex is to specific, i have test exceptions (jboss and springboot) and they does not match and here it can be tested https://regex101.com/ |
Oh, I am not using it to parse exceptions, just multiline log messages |
@apollo13 ah ok - then the regex is better, but all logs need to start with the same date format |
Yes, they do in my case |
Hi, have you ever encountered this problem: #2013 |
I was able to resolve Java stack trace using multi line setting as follows: Setup: Fluent bit contianer logs (/var/log/containers): fluent-bit.conf: [INPUT] [FILTER] [OUTPUT]
|
@avinashashukla shouldn't the regex be |
i try to parser java exception on k8s platform, but it does not work.
that is my configuration
the java log
The text was updated successfully, but these errors were encountered: