Skip to content

Commit e3e97fe

Browse files
authored
"drop" config should be an array
When creating CLF with "drop" log record functionality: ~~~ cat clf.yaml apiVersion: logging.openshift.io/v1 kind: ClusterLogForwarder metadata: name: instance namespace: openshift-logging spec: filters: - name: important type: drop drop: test: - field: .kubernetes.namespace_name matches: "^open" test: - field: .log_type matches: "application" - field: .kubernetes.pod_name notMatches: "my-pod" pipelines: - name: test filterRefs: ["abc"] inputRefs: - application outputRefs: - default ~~~ $ oc create -f clf.yaml The ClusterLogForwarder "instance" is invalid: spec.filters[0].drop: Invalid value: "object": spec.filters[0].drop in body must be of type array: "object" "drop" should be an array and same is correct in the docs.
1 parent de35c32 commit e3e97fe

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

modules/logging-content-filter-drop-records.adoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ spec:
3232
- name: <filter_name>
3333
type: drop # <1>
3434
drop: # <2>
35-
test: # <3>
35+
- test: # <3>
3636
- field: .kubernetes.labels."foo-bar/baz" # <4>
3737
matches: .+ # <5>
3838
- field: .kubernetes.pod_name

0 commit comments

Comments
 (0)