Missing pod labels in Kibana in RHOCP 4

Solution Verified - Updated -

Issue

  • Not all pod labels appear in Kibana, so filtering of application logs based on labels is not possible.
  • All pod labels appear within the field kubernetes.flat_labels in Kibana, but not all of them appear as own fields like e.g. kubernetes.namespace_labels.<label_name>
  • In Kibana, there is a difference between the content of kubernetes.flat_labels and the effective labels that appear with their own fields.
  • In Kibana, pod labels like e.g. app.kubernetes.io/name: myapp and app.kubernetes.io/managed-by: openshift appear with their own fields kubernetes.labels.app.kubernetes.io/name: myapp and kubernetes.labels.app.kubernetes.io/managed-by: openshift. However pod labels like e.g. foo: bar only appear in Kibana as part of the field kubernetes.flat_labels
  • How are labels parsed in logging collectors in RHOCP 4?

Environment

  • Red Hat OpenShift Container Platform (RHOCP)
    • 4
  • Red Hat OpenShift Logging (RHOL)
    • 5

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