-
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
Unable to parse multiline logs for containerd #4234
Comments
@sumo-drosiek you might want to search the issues for "multiline" as I'm pretty sure this issue has been reported multiple times, specifically in this case #4033. |
I've been looking at this issue and it seems that it more or less is related to receiving multiple One can observe in the below attached log that whenever there's more events than 1 then we receive that may log entries on the stdout plugin (used for debugging purposes) Probably there's a proper (better) solution but could looking up if there's already a fluent-bit/plugins/in_tail/tail_fs_inotify.c Lines 158 to 159 in 516fb40
|
I prepared configuration which copes with the case described by @sumo-drosiek, it is combination of default multiline parser for cri logs with custom parser used in multiline filter. Tested scenario:
and as result I got logs in this form:
|
I missed the fact that:
so the configuration provided in #4234 (comment) does not resolve the issue |
This issue is stale because it has been open 90 days with no activity. Remove stale label or comment or this will be closed in 5 days. Maintainers can add the |
This issue was closed because it has been stalled for 5 days with no activity. |
It still doesn't work |
please reopen |
Bug Report
Describe the bug
I tried several configurations, but I'm unable to parse multiline logs from containerd using only tail plugin
To Reproduce
logs.txt
custom_parsers.conf
What I want to achieve:
fluent-bit.conf
output
I want to parse multiline on top of the cri "log" output, so I assume the regex_pattern should match it.
In opposite to this I used multiline filter, which works correctly using the same parser:
fluent-bit.conf
output
This would be fine, but as documentation says:
and it doesn't work for longer multiline logs
Expected behavior
Ability to parse mulitline on the top of the cri parser
Screenshots
N/A
Your Environment
Additional context
N/A
The text was updated successfully, but these errors were encountered: