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

Error in clusterlogforwarder CR filters code

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Undefined Undefined
    • None
    • None
    • Logging
    • None

      [Customer reported issue]

      Doc: https://docs.redhat.com/en/documentation/red_hat_openshift_logging/6.4/html/configuring_logging/configuring-log-forwarding#logging-content-filter-drop-records_configuring-log-forwarding

      Customer comments: 
      "

      I would like to point out that there is an error in documentation regarding clusterlogforwarder CR in filters/drop section that needs to be corrected, to be specific:

       

      spec:

        filters:

          - name: my-filter

            type: drop

            drop:

              test: # <--- This should be part of a list/array

                - field: .kubernetes.labels."foo-bar/baz"

                  matches: .+

       

      working sample

       

      spec:

        # ... other spec fields like serviceAccount, inputs, outputs, pipelines ...

        filters:

          - name: my-filter # The filter you are referencing in your pipelines

            type: drop

            drop: # <--- This is now an array/list

              - test: # <--- Each item in the list is a 'test' condition

                  - field: .kubernetes.labels."foo-bar/baz"

       

      The dash before test took me 2 hours to discover what the error was…

          1.
          Peer Review Sub-task New Undefined Unassigned
          2.
          Merge Review Sub-task New Undefined Unassigned

              amehenda@redhat.com Ashwin Mehendale
              sstout@redhat.com Stephanie Stout
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated: