I am getting error while deploying autodiscover in our environment
Error: Exiting: error in autodiscover provider settings: error setting up kubernetes autodiscover provider: missing field accessing 'filebeat.autodiscover.providers.0.templates.0.condition.equals' (source:'filebeat.yml')
Below is the helm values.yaml file
image:
tag: 7.6.0
overrideConfig:
filebeat.config:
modules:
path: ${path.config}/modules.d/*.yml
# Reload module configs as they change:
reload.enabled: true
filebeat.autodiscover:
providers:
- type: kubernetes
templates:
- condition.equals:
kubernetes.namespace: "*"
config:
- type: container
paths:
- /var/log/containers/*-${data.kubernetes.container.id}.log
processors:
- add_kubernetes_metadata:
in_cluster: true
- drop_event:
when:
or:
- contains:
kubernetes.namespace: "kube"
- contains:
kubernetes.namespace: "platform"
- contains:
kubernetes.namespace: "default"
- add_cloud_metadata:
- add_fields:
target: kubernetes