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

**URL:** <https://discuss.elastic.co/t/filebeat-autodicover-with-docker-doesnt-see-any-logs-from-the-containers/174086>\
**Category:** Beats\
**Tags:** filebeat\
**Created:** [March 27, 2019, 10:23am UTC](https://discuss.elastic.co/t/filebeat-autodicover-with-docker-doesnt-see-any-logs-from-the-containers/174086 "2019-03-27T10:23:35Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![iredko](https://avatars.discourse-cdn.com/v4/letter/i/45deac/32.png) [@iredko](https://discuss.elastic.co/u/iredko)\
**Post date:** [March 27, 2019, 10:23am UTC](https://discuss.elastic.co/t/filebeat-autodicover-with-docker-doesnt-see-any-logs-from-the-containers/174086/1 "2019-03-27T10:23:36Z")

</div>

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](http://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.

---

<div class="post-metadata">

**Author:** ![kvch](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/kvch/32/72058_2.png) [@kvch](https://discuss.elastic.co/u/kvch)\
**Post date:** [March 27, 2019, 2:49pm UTC](https://discuss.elastic.co/t/filebeat-autodicover-with-docker-doesnt-see-any-logs-from-the-containers/174086/2 "2019-03-27T14:49:27Z")

</div>

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?

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [April 24, 2019, 2:49pm UTC](https://discuss.elastic.co/t/filebeat-autodicover-with-docker-doesnt-see-any-logs-from-the-containers/174086/3 "2019-04-24T14:49:37Z")

</div>

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