Skip to content

Commit c0b2d74

Browse files
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 ~~~
1 parent 217563a commit c0b2d74

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

modules/logging-forwarding-azure.adoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,7 @@ spec:
127127
secret:
128128
name: my-secret
129129
pipelines:
130-
- name: app-pipeline
130+
- name: app-pipeline
131131
inputRefs:
132132
- application
133133
outputRefs:

0 commit comments

Comments
 (0)