Hi,
I have filebeats running on Kubernetes with the autodiscover option, I have Ambassador running on the K8 cluster among several other application and I am trying to process the logs for the Ambassador containers differently using a pipeline on Elasticsearch to extract the details of the access logs using the following autodicover configuration:
filebeat.autodiscover:
providers:
- type: kubernetes
add_resource_metadata:
namespace:
enabled: true
hints.enabled: true
templates:
- condition:
and:
- contains.kubernetes.container.name: ambassador
- contains.message: ACCESS
config:
- type: container
pipeline: ambassador-access-log
paths:
- /var/lib/docker/containers/*/${data.kubernetes.container.id}-json.log
- config:
- type: container
paths:
- /var/lib/docker/containers/*/${data.kubernetes.container.id}-json.log
Sadly, this is not working and seems that I am loosing all the logs from the ambassador containers. Is what I am trying to do possible? what could be wrong in the configuration?
Thanks,
Zareh