Hi - I am using following configuration in filebeat to read docker container logs. kubernetes is used for docker clustering.
filebeat.autodiscover:
providers:
- type: kubernetes
templates:
- condition:
equals:
kubernetes.namespace: msairlines
config:
- type: docker
containers.ids:
- "${data.kubernetes.container.id}"
exclude_lines: ["^\s+[\-`('.|_]"] # drop asciiart lines
I am getting below issue. Please help me to resolve.
"Exiting: Unable to get in cluster configuration: open /var/run/secrets/kubernetes.io/serviceaccount/namespace: no such file or directory"
Regards
Venkat