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

[Logging 6.1.z] Infra namespaces spec'd as app inputs have log_type set to 'application'

    • False
    • None
    • False
    • NEW
    • NEW
    • Before this update, when infrastructure namespaces were included in application inputs, the `log_type` was set as `application`. With this update, the `log_type` of infrastructure namespaces included in application inputs is set to `infrastructure`.
    • Bug Fix
    • Log Collection - Sprint 262, Log Collection - Sprint 263, Log Collection - Sprint 265

      Description of problem:

      When infrastructure namespaces are included under `Application` inputs, their log_type is set to application instead of infrastructure.

      Example when using `openshift*`, logs from namespace `openshift-logging` have a log_type set to application.

      Version-Release number of selected component (if applicable):

      5.9, 6.0, 61

      How reproducible: Always

      Steps to Reproduce:

      1. Create CLF with application input that includes `openshift*`
      2. apiVersion: observability.openshift.io/v1
        kind: ClusterLogForwarder
        metadata:
          name: clf-71488
          namespace: e2e-test-vector-cw-pknkn
        spec:
          inputs:
          - application:
              includes:
              - namespace: openshift*
            name: new-app
            type: application
          managementState: Managed
          outputs:
          - cloudwatch:
              authentication:
                iamRole:
                  roleARN:
                    key: role_arn
                    secretName: clf-71448
                  token:
                    from: serviceAccount
                type: iamRole
              groupName: logging-71488-ci-op-1wxtsnq8-77988-wqmt4. {.log_type||"none-typed-logs"}
              region: ap-northeast-1
              tuning: {}
            name: cloudwatch
            type: cloudwatch
          pipelines:
          - inputRefs:
            - new-app
            name: to-cloudwatch
            outputRefs:
            - cloudwatch
          serviceAccount:
            name: clf-71448
        

         

      1. Query logs and check log_type

      Actual results:

      log_type of infrastructure namespace logs are set to `application`

      Expected results:

      log_type of infrastructure namespace logs are set to `infrastructure`

            [LOG-6373] [Logging 6.1.z] Infra namespaces spec'd as app inputs have log_type set to 'application'

            Errata Tool added a comment -

            Since the problem described in this issue should be resolved in a recent advisory, it has been closed.

            For information on the advisory (Logging for Red Hat OpenShift - 6.1.2), and where to find the updated files, follow the link below.

            If the solution does not work for you, open a new bug report.
            https://access.redhat.com/errata/RHBA-2025:1229

            Errata Tool added a comment - Since the problem described in this issue should be resolved in a recent advisory, it has been closed. For information on the advisory (Logging for Red Hat OpenShift - 6.1.2), and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. https://access.redhat.com/errata/RHBA-2025:1229

            Verified on cluster-logging.v6.1.2.

            Qiaoling Tang added a comment - Verified on cluster-logging.v6.1.2.

            CPaaS Service Account mentioned this issue in merge request !4870 of openshift-logging / Log Collection Midstream on branch openshift-logging-6.1-rhel-9_upstream_a9380a7accb75c3648c07accf9a4f062:

            Updated US source to: e6378b8 LOG-6236: Align syslog output implementation with spec RFC3164 and RFC5124

            GitLab CEE Bot added a comment - CPaaS Service Account mentioned this issue in merge request !4870 of openshift-logging / Log Collection Midstream on branch openshift-logging-6.1-rhel-9_ upstream _a9380a7accb75c3648c07accf9a4f062 : Updated US source to: e6378b8 LOG-6236: Align syslog output implementation with spec RFC3164 and RFC5124

              rh-ee-calee Calvin Lee
              rh-ee-calee Calvin Lee
              Qiaoling Tang Qiaoling Tang
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Created:
                Updated:
                Resolved: