1
0
mirror of https://github.com/openshift/openshift-docs.git synced 2026-02-07 00:48:01 +01:00
dhgautam99 49ca24752c "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.
2024-08-06 21:54:13 +00:00
2024-08-05 15:04:48 +00:00
2024-07-30 14:45:34 -04:00
2024-07-30 14:45:34 -04:00
2024-07-30 14:45:34 -04:00
2024-08-06 21:54:13 +00:00
2024-08-06 14:04:58 +00:00
2024-07-30 14:45:34 -04:00
2024-07-30 14:45:34 -04:00
2024-07-30 14:45:34 -04:00
2024-08-05 15:04:48 +00:00
2024-08-02 09:09:14 +00:00
2024-07-30 14:45:34 -04:00
2024-07-30 14:45:34 -04:00
2024-07-30 14:45:34 -04:00
2024-07-30 14:45:34 -04:00

= 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%