I have filebeat running as daemonset in k8s cluster, while apps storing file which mounted in host disk, this path also mounted by filebeat containers.
Previously on 7.6 its working but after upgrading to 7.7.1 its stop. Rolling back to 7.6.0 make it working again.
after upgrading to 7.7.1, the only obvious error in Filebeat container is:
ERROR [kubernetes] add_kubernetes_metadata/matchers.go:91 Error extracting container id - source value does not contain matcher's logs_path '/var/lib/docker/containers/'.
This error not occur on filebeat 7.6.0
this is my filebeat yaml:
filebeat.autodiscover:
providers:
- type: kubernetes
node: ${NODE_NAME}
templates:
- condition:
equals:
kubernetes.pod.labels.logtype: filebeat
config:
- type: log
enabled: true
paths:
- /var/lib/kubelet/pods/${data.kubernetes.pod.uid}/volumes/kubernetes.io~empty-dir/filebeat-volume/*.json
json:
keys_under_root: false
add_error_key: true
fields:
logtype: filebeat
while filebeat mounting /var/lib/kubelet/pods/ and my pods have labels logtype=filebeat
Any help is appreciated