apiVersion: logging.openshift.io/v1
kind: ClusterLogForwarder
metadata:
# ...
spec:
filters:
- name: <filter_name>
type: drop (1)
drop: (2)
- test: (3)
- field: .kubernetes.labels."foo-bar/baz" (4)
matches: .+ (5)
- field: .kubernetes.pod_name
notMatches: "my-pod" (6)
pipelines:
- name: <pipeline_name> (7)
filterRefs: ["<filter_name>"]
# ...