mirror of
https://github.com/openshift/openshift-docs.git
synced 2026-02-06 15:46:57 +01:00
"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.
This commit is contained in:
committed by
openshift-cherrypick-robot
parent
0483cc2b5a
commit
49ca24752c
@@ -32,7 +32,7 @@ spec:
|
||||
- name: <filter_name>
|
||||
type: drop # <1>
|
||||
drop: # <2>
|
||||
test: # <3>
|
||||
- test: # <3>
|
||||
- field: .kubernetes.labels."foo-bar/baz" # <4>
|
||||
matches: .+ # <5>
|
||||
- field: .kubernetes.pod_name
|
||||
|
||||
Reference in New Issue
Block a user