Namespace-specific log forwarding using ClusterLogForwarder does not work as expected

Solution Verified - Updated -

Issue

  • After configuring ClusterLogForwarder as per official documentation to forward multiple namespace-specific logs to different external elasticsearch instances, logs from those specific namespaces get copied to all the external elasticsearch instance.
  • The expected log flow after configuring ClusterLogForwarder as mentioned in diagnostic steps:
Project A logs --> external-elasticsearch-1   
Project B logs --> external-elasticsearch-2
  • Actual log flow results as mentioned below:
Project A and Project B logs --> external-elasticsearch-1
Project A and Project B logs --> external-elasticsearch-2

Environment

  • Red Hat OpenShift Container Platform [RHOCP]
    • 4.6

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