How do you handle multiline logs such as Java stack traces?

BeginnerProductionLog Pipelines
Answer

Best: log JSON with the stack trace in a field, so one event is one line. Otherwise configure the agent's multiline parser. Fluent Bit:

[INPUT]
    Name              tail
    Path              /var/log/containers/*.log
    multiline.parser  docker, cri, java

Without this, each stack frame becomes a separate log entry, which breaks search and inflates counts.

All Monitoring & Observability questions Roadmap: Logging & tracing

More on Log Pipelines