# ELK no read logs from docker containers

**URL:** https://discuss.elastic.co/t/elk-no-read-logs-from-docker-containers/182612
**Category:** Beats
**Tags:** filebeat
**Created:** [May 24, 2019, 10:13am UTC](https://discuss.elastic.co/t/elk-no-read-logs-from-docker-containers/182612 "2019-05-24T10:13:18Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![angie](https://avatars.discourse-cdn.com/v4/letter/a/ec9cab/32.png) [@angie](https://discuss.elastic.co/u/angie)
#### Post date: [May 24, 2019, 10:13am UTC](https://discuss.elastic.co/t/elk-no-read-logs-from-docker-containers/182612/1 "2019-05-24T10:13:19Z")

</div>

hello,

Filebeat is not reading docker logs, of course, because of permission:  
Exiting: error initializing publisher: error initializing processors: Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker daemon running?

Could you please tell me what command should I add?

docker-compose.yml  
filebeat:  
image: [docker.elastic.co/beats/filebeat:6.6.0](http://docker.elastic.co/beats/filebeat:6.6.0)  
volumes:  
- ./conf/filebeat.yml:/usr/share/filebeat/filebeat.yml  
- /var/lib/docker/containers:/var/lib/docker/containers:ro  
depends\_on:  
- elasticsearch

filebeat.yml

```
filebeat.inputs:
- type: docker
  containers.ids: '*'
  json.message_key: message
  json.keys_under_root: true
  json.add_error_key: true
  json.overwrite_keys: true

processors:
- add_docker_metadata: ~

# setup filebeat to send output to logstash
output.logstash:
  hosts: ["localhost:5044"]

```

I look forward to hearing from you.

---

<div class="post-metadata">

### Author: ![faec](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/faec/32/46988_2.png) [@faec](https://discuss.elastic.co/u/faec)
#### Post date: [May 28, 2019, 7:18pm UTC](https://discuss.elastic.co/t/elk-no-read-logs-from-docker-containers/182612/2 "2019-05-28T19:18:53Z")

</div>

This looks like possibly a problem in the docker environment rather than the filebeat configuration. Is the Docker daemon running, and if so what do you see in `/var/run/docker.sock`?

---

<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: [June 25, 2019, 7:18pm UTC](https://discuss.elastic.co/t/elk-no-read-logs-from-docker-containers/182612/3 "2019-06-25T19:18:55Z")

</div>

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