mirror of
https://github.com/openshift/openshift-docs.git
synced 2026-02-07 00:48:01 +01:00
49ca24752c91eb942567d3dfbd5cc2016468ceff
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.
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
= OpenShift Documentation Welcome to the OpenShift documentation GitHub repository. To contribute to OpenShift docs, see https://github.com/openshift/openshift-docs/blob/master/contributing_to_docs/contributing.adoc
Description
Languages
HTML
33.5%
CSS
24%
Python
23.6%
JavaScript
10.8%
Shell
7%
Other
0.9%