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

ClusterLogForwarder example in About logging 6.0 section is not defined properly

XMLWordPrintable

    • 1
    • False
    • Hide

      None

      Show
      None
    • False
    • Important

      Inside About Logging 6.0 section in Quick Start, the step number 9." Create a ClusterLogForwarder CR to configure log forwarding is not defined properly. If copy/paste this example, the following error is obtained:

      The ClusterLogForwarder "collector" is invalid: 
      * spec.outputs[0].lokiStack.authentication: Required value
      * <nil>: Invalid value: "null": some validation rules were not checked because the object was invalid; correct the existing errors to complete validation 

       To create a correct CLF, the authentication part must be inside lokistack:

      spec:
        serviceAccount:
          name: collector
        outputs:
        - name: default-lokistack
          type: lokiStack
          lokiStack:
            target:
              name: logging-loki
              namespace: openshift-logging
            authentication: -->this
              token: --> this
                from: serviceAccount --> this
          tls:
            ca:
              key: service-ca.crt
              configMapName: openshift-service-ca.crt 

              Unassigned Unassigned
              acandelp Adrian Candel
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated: