Uploaded image for project: 'OpenShift Logging'
  1. OpenShift Logging
  2. LOG-2868

Not all labels are included in "kubernetes.labels" for non-Elasticsearch output types

    XMLWordPrintable

Details

    • False
    • None
    • False
    • NEW
    • NEW
    • Log Collection - Sprint 222

    Description

      Cluster version: 4.9
      Logging version: 5.5

      Steps to reproduce:

      1. Install CLO and EO
      2. Create Clusterlogging instance with Fluentd
      3. Create application for logs with below labels:

       "labels": {
          "run": "centos-logtest",
          "test": "centos-logtest",
          "app.kubernetes.io/name": "test",
          "app.kubernetes.io/instance": "functionaltest",
          "app.kubernetes.io/version":  "123",
          "app.kubernetes.io/component": "thecomponent",
          "app.kubernetes.io/part-of": "clusterlogging",
          "app.kubernetes.io/managed-by": "clusterloggingoperator",
          "app.kubernetes.io/created-by": "anoperator"
      }

      Actual:  Seeing below output for non-elasticsearch output type:

      "labels": {
        "app.kubernetes.io/managed-by": "clusterloggingoperator",
        "app.kubernetes.io/name": "test",
        "app.kubernetes.io/part-of": "clusterlogging",
        "app.kubernetes.io/created-by": "anoperator",
        "app.kubernetes.io/instance": "functionaltest",
        "app.kubernetes.io/version": "123",
        "app.kubernetes.io/component": "thecomponent"
      },
      "flat_labels": [
        "app.kubernetes.io/component=thecomponent",
        "app.kubernetes.io/created-by=anoperator",
        "app.kubernetes.io/instance=functionaltest",
        "app.kubernetes.io/managed-by=clusterloggingoperator",
        "app.kubernetes.io/name=test",
        "app.kubernetes.io/part-of=clusterlogging",
        "app.kubernetes.io/version=123"
      ]
      

       

      Expected

      • all labels are included in "kubernetes.labels" for non-Elasticsearch output types
      • "kubernetes.flatten_labels" with all labels exists for all output types

      Attachments

        Issue Links

          Activity

            People

              jcantril@redhat.com Jeffrey Cantrill
              gkarager Giriyamma Karagere Ramaswamy (Inactive)
              Giriyamma Karagere Ramaswamy Giriyamma Karagere Ramaswamy (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: