Filebeat autodicover with docker doesn't see any logs from the containers

Hello,
I'm trying to set up the Filebeat with the autodiscovey for my docker containers.
So the filebeat starts finds some containers. And that's all. No files harvesting, no metrics sending.
I've already wasted so much time on it! And no positive result!
How do I finally make it discover the correct containers and collect their logs?!?!

Here is my config file:

filebeat.autodiscover:
providers:
- type: docker
json.message_key: log
templates:
- condition:
not.contains:
docker.container.image: image1, image2
config:
- type: docker
containers.ids:
- '${data.docker.container.id}'
json.keys_under_root: true
json.add_error_key: true
fields:
token: my_token
service_type: 'ecs'
environment: dev
project: dse
fields_under_root: true
processors:
- add_docker_metadata: ~
registry_file: /var/lib/filebeat/registry
output:
logstash:
enabled: true
hosts: ["listener.logz.io:5015"]
ssl:
certificate_authorities: ['/usr/share/filebeat/filebeat.crt']

I'm already frustrated and if I don't figure it out, I'll just move to the Fluentd.

Could you please format your configuration using </>? Without seeing the formatting, it's hard to determine the problem.

Could you also share the debug logs of Filebeat?

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