Skip to content
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

Fluentbit: Processing multiline/stack trace log messages (java, python, go, .) #57

Closed
ricsanfre opened this issue Jul 27, 2022 · 1 comment · Fixed by #59
Closed

Fluentbit: Processing multiline/stack trace log messages (java, python, go, .) #57

ricsanfre opened this issue Jul 27, 2022 · 1 comment · Fixed by #59
Labels
enhancement New feature or request
Milestone

Comments

@ricsanfre
Copy link
Owner

Enhancement Request

In current implementation application stack traces (java, go, python), multi-line logs, are split into different log entries.

Activate fluentbit new built-in mutiline parsers/filters (availible since v1.8.2) to concatenate Multiline or Stack trace log messages. In my current implementation, multiline parser is configured for Tail input (using cri parsers) to parse possible multiline containerd logs.
It is needed to apply mutiline filter to the log field, discovered while parsing containerd log (cri parse). to process this stack traces generated by different languages (go, python, java).
See furthter details multiline filter doc.

Implementation details

Filter like the following should be added

    [FILTER]
        name                  multiline
        match                 *
        multiline.key_content log
        multiline.parser      java,python,go
@ricsanfre ricsanfre added the enhancement New feature or request label Jul 27, 2022
@ricsanfre ricsanfre added this to the release 1.4 milestone Jul 27, 2022
@ricsanfre
Copy link
Owner Author

ricsanfre commented Jul 31, 2022

There is a interesting blog where multiline parsing in fluentd is showed. The github repository attached to the blog contains a testing app that can be used for testing purposes.
This test application is built using Spring boot framework.

The process to build such application, using docker, is defined here: how to build docker images for java

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant