# Filbeat autodiscover ssl options

**URL:** <https://discuss.elastic.co/t/filbeat-autodiscover-ssl-options/144899>\
**Category:** Beats\
**Tags:** filebeat\
**Created:** [August 17, 2018, 12:37pm UTC](https://discuss.elastic.co/t/filbeat-autodiscover-ssl-options/144899 "2018-08-17T12:37:39Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![John\_Doe2](https://avatars.discourse-cdn.com/v4/letter/j/0ea827/32.png) [@John\_Doe2](https://discuss.elastic.co/u/John_Doe2)\
**Post date:** [August 17, 2018, 12:37pm UTC](https://discuss.elastic.co/t/filbeat-autodiscover-ssl-options/144899/1 "2018-08-17T12:37:39Z")

</div>

I have filbeat running as an docker container and want to use the autodiscover to gather the container logs. My Docker daemon is secured, as described here: [Protect the Docker daemon socket | Docker Docs](https://docs.docker.com/engine/security/https/)

where can i set the ssl/tls settings so filebeat knows where the certs are?

filebeat.yml:

> filebeat.autodiscover:  
> providers:
> 
> - type: docker  
> host: "tcp://Hostname:2375"  
> templates:
> - condition:  
> contains:  
> docker.container.image: '\*'  
> config:
> - type: docker  
> containers.ids:
> - "${data.docker.container.id}"

Log output:

> {"level":"info","timestamp":"2018-08-17T12:36:06.112Z","caller":"instance/beat.go:492","message":"Home path: [/usr/share/filebeat] Config path: [/usr/share/filebeat] Data path: [/usr/share/filebeat/data] Logs path: [/usr/share/filebeat/logs]"}  
> {"level":"debug","timestamp":"2018-08-17T12:36:06.113Z","logger":"beat","caller":"instance/beat.go:519","message":"Beat metadata path: /usr/share/filebeat/data/meta.json"}  
> {"level":"info","timestamp":"2018-08-17T12:36:06.113Z","caller":"instance/beat.go:499","message":"Beat UUID: 29e392bc-e06d-40fa-96b0-9977563057a0"}  
> {"level":"info","timestamp":"2018-08-17T12:36:06.113Z","logger":"beat","caller":"instance/beat.go:716","message":"Beat info","system\_info":{"beat":{"path":{"config":"/usr/share/filebeat","data":"/usr/share/filebeat/data","home":"/usr/share/filebeat","logs":"/usr/share/filebeat/logs"},"type":"filebeat","uuid":"29e392bc-e06d-40fa-96b0-9977563057a0"}}}  
> {"level":"info","timestamp":"2018-08-17T12:36:06.113Z","logger":"beat","caller":"instance/beat.go:725","message":"Build info","system\_info":{"build":{"commit":"45a9a9e1561b6c540e94211ebe03d18abcacae55","libbeat":"6.3.2","time":"2018-07-20T04:18:19.000Z","version":"6.3.2"}}}  
> {"level":"info","timestamp":"2018-08-17T12:36:06.113Z","logger":"beat","caller":"instance/beat.go:728","message":"Go runtime info","system\_info":{"go":{"os":"linux","arch":"amd64","max\_procs":2,"version":"go1.9.4"}}}  
> {"level":"info","timestamp":"2018-08-17T12:36:06.115Z","logger":"beat","caller":"instance/beat.go:732","message":"Host info","system\_info":{"host":{"architecture":"x86\_64","boot\_time":"2018-06-20T11:11:09Z","containerized":true,"hostname":"hostname","ips":["127.0.0.1/8","172.18.0.3/16"],"kernel\_version":"3.10.0-693.11.6.el7.x86\_64","mac\_addresses":["02:42:ac:12:00:03"],"os":{"family":"redhat","platform":"centos","name":"CentOS Linux","version":"7 (Core)","major":7,"minor":5,"patch":1804,"codename":"Core"},"timezone":"UTC","timezone\_offset\_sec":0}}}  
> {"level":"info","timestamp":"2018-08-17T12:36:06.115Z","logger":"beat","caller":"instance/beat.go:761","message":"Process info","system\_info":{"process":{"capabilities":{"inheritable":["chown","dac\_override","fowner","fsetid","kill","setgid","setuid","setpcap","net\_bind\_service","net\_raw","sys\_chroot","mknod","audit\_write","setfcap"],"permitted":null,"effective":null,"bounding":["chown","dac\_override","fowner","fsetid","kill","setgid","setuid","setpcap","net\_bind\_service","net\_raw","sys\_chroot","mknod","audit\_write","setfcap"],"ambient":null},"cwd":"/usr/share/filebeat","exe":"/usr/share/filebeat/filebeat","name":"filebeat","pid":1,"ppid":0,"seccomp":{"mode":"filter"},"start\_time":"2018-08-17T12:36:05.610Z"}}}  
> {"level":"info","timestamp":"2018-08-17T12:36:06.116Z","caller":"instance/beat.go:225","message":"Setup Beat: filebeat; Version: 6.3.2"}  
> {"level":"debug","timestamp":"2018-08-17T12:36:06.116Z","logger":"beat","caller":"instance/beat.go:242","message":"Initializing output plugins"}  
> {"level":"debug","timestamp":"2018-08-17T12:36:06.149Z","logger":"docker","caller":"docker/client.go:29","message":"Negotiating client version"}  
> {"level":"debug","timestamp":"2018-08-17T12:36:06.150Z","logger":"docker","caller":"docker/client.go:32","message":"Failed to perform ping: Cannot connect to the Docker daemon at tcp://hostname:2375. Is the docker daemon running?"}  
> {"level":"debug","timestamp":"2018-08-17T12:36:06.150Z","logger":"docker","caller":"docker/client.go:46","message":"Client version set to 1.22"}  
> {"level":"debug","timestamp":"2018-08-17T12:36:06.150Z","logger":"docker","caller":"docker/watcher.go:167","message":"Start docker containers scanner"}  
> {"level":"info","timestamp":"2018-08-17T12:36:06.150Z","caller":"instance/beat.go:275","message":"filebeat stopped."}  
> {"level":"error","timestamp":"2018-08-17T12:36:06.150Z","caller":"instance/beat.go:691","message":"Exiting: error initializing publisher: error initializing processors: Cannot connect to the Docker daemon at tcp://hostname:2375. Is the docker daemon running?"}  
> Exiting: error initializing publisher: error initializing processors: Cannot connect to the Docker daemon at tcp://hostname:2375. Is the docker daemon running?  
> filebeat exited with code 1

---

<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:** [September 14, 2018, 12:37pm UTC](https://discuss.elastic.co/t/filbeat-autodiscover-ssl-options/144899/2 "2018-09-14T12:37:46Z")

</div>

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