Uploaded image for project: 'Observability Documentation'
  1. Observability Documentation
  2. OBSDOCS-1518

Update type field in RHOL 6.0 documentation in Filtering application logs configuration

XMLWordPrintable

    • False
    • Hide

      None

      Show
      None
    • False

      The type field in RHOL 6.0 documentation is missing from the Filtering application logs configuration

      Filtering application logs at input by including or excluding the namespace or container name

      apiVersion: observability.openshift.io/v1
      kind: ClusterLogForwarder
      # ...
      spec:
        serviceAccount:
          name: <service_account_name>
        inputs:
          - name: mylogs
            application:
              includes:
                - namespace: "my-project" 
                  container: "my-container" 
              excludes:
                - container: "other-container*" 
                  namespace: "other-namespace" 

       

      • type field is missing in the above configuration.
      • type field filed is required while configuring ClusterLogForwarder with the inputs section.
      • spec.inputs.type is required
      • type should be `application` here in above configuration.

      It needs to look like the following:

      apiVersion: observability.openshift.io/v1
      kind: ClusterLogForwarder
      # ...
      spec:
        serviceAccount:
          name: <service_account_name>
        inputs:
          - name: mylogs
            application:
              includes:
                - namespace: "my-project" 
                  container: "my-container" 
              excludes:
                - container: "other-container*" 
                  namespace: "other-namespace" 
            type: application             <<=== Need to add this line

              rhn-support-pripatil Prithviraj Patil
              rhn-support-pripatil Prithviraj Patil
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated: