1
0
mirror of https://github.com/openshift/openshift-docs.git synced 2026-02-06 15:46:57 +01:00
Files
openshift-docs/modules
Prithviraj Patil 03018c8100 Pipelines are wrongly mentioned in the Forwarding to Azure Monitor Logs section
- Pipelines are wrongly mentioned in the Advanced configuration options of Forwarding to Azure Monitor Logs sections.

- Here is the documentation link: https://docs.openshift.com/container-platform/4.16/observability/logging/log_collection_forwarding/configuring-log-forwarding.html#logging-forwarding-azure_configuring-log-forwarding

- Here are 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 for `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
    inputRefs:
    - application
    outputRefs:
    - azure-monitor
~~~
2024-12-19 14:40:37 +00:00
..