Skip to content

Commit ab019c0

Browse files
authored
Merge pull request #67884 from abrennan89/OBSDOCS-114
OBSDOCS-114: Fix formatting YAML error
2 parents 57ced99 + 91c5948 commit ab019c0

File tree

1 file changed

+16
-8
lines changed

1 file changed

+16
-8
lines changed

modules/cluster-logging-configuration-of-json-log-data-for-default-elasticsearch.adoc

Lines changed: 16 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -33,14 +33,22 @@ Suppose the following:
3333

3434
[source,yaml]
3535
----
36-
outputDefaults:
37-
elasticsearch:
38-
structuredTypeKey: kubernetes.labels.logFormat <1>
39-
structuredTypeName: nologformat
40-
pipelines:
41-
- inputRefs: <application>
42-
outputRefs: default
43-
parse: json <2>
36+
apiVersion: logging.openshift.io/v1
37+
kind: ClusterLogForwarder
38+
metadata:
39+
# ...
40+
spec:
41+
# ...
42+
outputDefaults:
43+
elasticsearch:
44+
structuredTypeKey: kubernetes.labels.logFormat <1>
45+
structuredTypeName: nologformat
46+
pipelines:
47+
- inputRefs:
48+
- application
49+
outputRefs:
50+
- default
51+
parse: json <2>
4452
----
4553
<1> Uses the value of the key-value pair that is formed by the Kubernetes `logFormat` label.
4654
<2> Enables parsing JSON logs.

0 commit comments

Comments
 (0)