Skip to content

Parser plugin multiline doesn't work as it appears in docs #338

Open
@satrushn

Description

@satrushn

Parser plugin multiline doesn't work as it appears in docs or there is a misunderstanding.
I tried to use parser multiline in section as it appears in docs : https://docs.fluentd.org/parser/multiline
I need to collect several lines in one message.

Example of log:

[DockerLogGenerator] Multiline: 2021-07-01 12:29:42.862326529 +0000 UTC m=+107095.440406775
This is the second line
This is the third line

I expect that this log will be parsed as something like this:

record:
{
"message":"[DockerLogGenerator] Multiline: 2021-07-01 12:29:42.862326529 +0000 UTC m=+107095.440406775\n This is the second line\n This is the third line
}

But it doesn't appears.

Example of my config:

image

Would you make clear in docs, how to collect multiline logs correctly in this case, please?
Thanks.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions