-
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
Join partial docker json-file lines #821
Comments
This should be solved with a multiline parser in tail plugin |
We have the exact same challenge. I tried:
With the default docker parser
This does not work and still breaks into multiple entries. @jlpettersson Any help would be greatly appreciated |
@NordbergDK The Parser_Firstline must point uniquely to a first line of a multilog message. That means a parser as docker in the format JSON does not help here. Why? We matched every line there. Because every line contains the JSON field "log" and therefore every entry is the beginning. For example, I have used a regex to specify the beginning of a multiline message. Cheers |
I am working on a filter to handle partial messages from e.g. Docker and CRI-O. |
@jlpettersson @edsiper Is there already a solution available or in planning for CRI-O log format (we use containerd)? We have large logs entries in JSON format that are splitted in F (Full) and P (Partial). Therefore, the JSON cannot be parsed automatically. Fluentbit is working very good in our environment. But we need a solution that these partial logs are merged. 2019-07-02T07:46:09.000766472Z stdout P { JSON.... |
@jlpettersson Is there a solution for this today? We see the key Multiline Parser with Your response/help is appreciated. |
@jlpettersson @edsiper Is there anything similar to the "Docker_Mode" option for CRI-O (containerd)? In our project context, many log entries are split due to their size and cannot be analyzed properly. Fluentbit perfectly fits in our infrastructure environment, but the lack of the possibility to join partial CRI-O logs more and more becomes a showstopper for us. Do you have any suggestions, how we can solve this problem? |
Are there any planes on implementing this in the near future? Not a C pro, but I guess I could take a stab at it, if I know my work will get merged... |
Any update on this? Anxiously awaiting this feature... |
Multiline UpdateAs part of Fluent Bit v1.8, we have released a new Multiline core functionality. This new big feature allows you to configure new For now, you can take at the following documentation resources:
Documentation pages now point to complete config examples that are available on our repository. Thanks everyone for supporting this! |
🥳 |
Signed-off-by: Patrick Stephens <[email protected]>
Is your feature request related to a problem? Please describe.
Fluent-bit does not join log lines that are splitted as "partial" by docker daemon, when logging to json-file. https://github.com/moby/moby/blob/master/daemon/logger/jsonfilelog/jsonfilelog.go#L135
Describe the solution you'd like
Fluent-bit should join these lines, either in the parser or in a filter.
Describe alternatives you've considered
We currently have issues with this and don't see any good workarounds.
Additional context
Log events are sent to Splunk, splitted over multiple events and unparsed since they are not considered to be valid json when splitted.
The text was updated successfully, but these errors were encountered: