KUBERNETES Log Reading using File Beat

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

Hi @Venkatesh_Radhakrish,

By default kubernetes autodiscover provider expects to be running inside the cluster, are you running it from outside?

Best regards

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