Reading data from multiple namespaces in filebeat

hi
How to add multiple namespaces in input

kind: ConfigMap
metadata:
  name: filebeat-inputs
  namespace: "{{ namespace }}"
  labels:
    k8s-app: filebeat
data:
  kubernetes.yml: |-
    - type: docker
      containers.ids:
      - "*"
      processors:
        - add_kubernetes_metadata:
            in_cluster: true
            namespace: some namespace

The above config works for one name space but fails when i do this

kind: ConfigMap
metadata:
  name: filebeat-inputs
  namespace: "{{ namespace }}"
  labels:
    k8s-app: filebeat
data:
  kubernetes.yml: |-
    - type: docker
      containers.ids:
      - "*"
      processors:
        - add_kubernetes_metadata:
            in_cluster: true
            namespace: namepspace-01
            namespace: namepspace-02

Then filbeat fails

Is there a way to add multiple namespaces in filebeat so as to read data only from them
is autodiscover the way ??

Thanks

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.