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

[vector]the condition in [transforms.route_container_logs] is inaccurate

XMLWordPrintable

    • Logging (Core) - Sprint 219, Logging (Core) - Sprint 220

      The condition in [transforms.route_container_logs] is inaccurate. All container logs in kube-,openshift-,default and openshift should be treated as infra logs. The other container logs are application logs.

      Actual Result:

      [transforms.route_container_logs]
      type = "route"
      inputs = ["container_logs"]
      route.app = '!((starts_with!(.kubernetes.pod_namespace,"kube")) || (starts_with!(.kubernetes.pod_namespace,"openshift")) || (.kubernetes.pod_namespace == "default"))'
      route.infra = '(starts_with!(.kubernetes.pod_namespace,"kube")) || (starts_with!(.kubernetes.pod_namespace,"openshift")) || (.kubernetes.pod_namespace == "default")'
      

      Expected result:

      [transforms.route_container_logs]
      type = "route"
      inputs = ["container_logs"]
      route.app = '!((starts_with!(.kubernetes.pod_namespace,"kube-")) || (starts_with!(.kubernetes.pod_namespace,"openshift-")) || (.kubernetes.pod_namespace == "default")) || (.kubernetes.pod_namespace == "openshift"))'
      route.infra = '(starts_with!(.kubernetes.pod_namespace,"kube-")) || (starts_with!(.kubernetes.pod_namespace,"openshift-")) || (.kubernetes.pod_namespace == "default") || (.kubernetes.pod_namespace == "openshift")'
      

              vparfono Vitalii Parfonov
              rhn-support-anli Anping Li
              Ishwar Kanse Ishwar Kanse
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Created:
                Updated:
                Resolved: