Skip to content

Feature: Concatenate Partial/Split Container Logs #895

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

Open
wants to merge 1 commit into
base: mainline
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 18 additions & 0 deletions configs/parse-multiline-json.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
[SERVICE]
Parsers_File /fluent-bit/parsers/parsers.conf
Flush 1
Grace 30

[FILTER]
Name parser
Match *
Key_Name log
Parser json
Reserve_Data True

[FILTER]
name multiline
match *
multiline.key_content log
# partial_message mode is incompatible with option multiline.parser
mode partial_message
1 change: 1 addition & 0 deletions scripts/dockerfiles/Dockerfile.build
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,7 @@ ADD configs/output-metrics-healthcheck.conf /fluent-bit/configs/
ADD configs/plugin-metrics-to-cloudwatch.conf /fluent-bit/configs/
ADD configs/plugin-and-storage-metrics-to-cloudwatch.conf /fluent-bit/configs/
ADD configs/plugin-metrics-parser.conf /fluent-bit/configs/
ADD configs/parse-multiline-json.conf /fluent-bit/configs/

# Compile stage added for improved build speeds when caching is used
FROM builder as compile
Expand Down