Multiline logs in OpenShift 4 with ClusterLogForwarder API

Solution Verified - Updated -

Issue

  • How to forward multiline logs?
  • What and where do we have to configure in fluentd in OpenShift Platform to forward multiline logs via official ClusterLogForwarder (4.8+)?
  • How can Java stack traces be sent to ElasticSearch as a single log line?
  • Java stack traces are shown on multiple lines in Kibana, how can they be shown as a single line?

Environment

  • Red Hat OpenShift Container Platform (RHOCP)
    • 4.8+
  • Red Hat OpenShift Logging (RHOL)
    • 5.3+

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content