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

Pipelines are wrongly mentioned in the Forwarding to Azure Monitor Logs section

XMLWordPrintable

    • 0
    • False
    • Hide

      None

      Show
      None
    • False
    • Important

      • Here is the current Advanced configuration options part:
        apiVersion: "logging.openshift.io/v1"
        kind: "ClusterLogForwarder"
        metadata:
          name: instance
          namespace: openshift-logging
        spec:
          outputs:
          - name: azure-monitor
            type: azureMonitor
            azureMonitor:
              customerId: my-customer-id
              logType: my_log_type
              azureResourceId: "/subscriptions/111111111" 
              host: "ods.opinsights.azure.com" 
            secret:
               name: my-secret
          pipelines:
           - name: app-pipeline   <<== Wrong indentation
            inputRefs: 
            - application     
            outputRefs: 
            - azure-monitor 
      • Due to this ClusterLogForwarder can not get applied. It streams the following errors:
        Error parsing YAML: YAMLException: bad indentation of a sequence entry at line 19, column 5:
        inputRefs: 
        
        Error parsing YAML: YAMLException: bad indentation of a sequence entry at line 20, column 5:
        - application
        
        Error parsing YAML: YAMLException: bad indentation of a sequence entry at line 21, column 5:
        outputRefs:
        
        Error parsing YAML: YAMLException: bad indentation of a sequence entry at line 22, column 5:
        - azure-monitor
      • Here is the correct indentation:
        apiVersion: "logging.openshift.io/v1"
        kind: "ClusterLogForwarder"
        metadata:
          name: instance
          namespace: openshift-logging
        spec:
          outputs:
          - name: azure-monitor
            type: azureMonitor
            azureMonitor:
              customerId: my-customer-id
              logType: my_log_type
              azureResourceId: "/subscriptions/111111111" 
              host: "ods.opinsights.azure.com" 
            secret:
               name: my-secret
          pipelines:
          - name: app-pipeline
            inputRefs:
            - application
            outputRefs:
            - azure-monitor 
      • I am raising a PR for this change and I will work on that PR.

       

       

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

                Created:
                Updated:
                Resolved: