# Filebeat fails to send docker container logs to Logstash

**URL:** <https://discuss.elastic.co/t/filebeat-fails-to-send-docker-container-logs-to-logstash/134419>\
**Category:** Beats\
**Tags:** filebeat\
**Created:** [June 4, 2018, 12:31pm UTC](https://discuss.elastic.co/t/filebeat-fails-to-send-docker-container-logs-to-logstash/134419 "2018-06-04T12:31:13Z")\
**Posts on this page:** 1\
**Showing post:** 5

<div class="post-metadata">

**Author:** ![Dolores](https://avatars.discourse-cdn.com/v4/letter/d/4491bb/32.png) [@Dolores](https://discuss.elastic.co/u/Dolores)\
**Post date:** [June 6, 2018, 2:59pm UTC](https://discuss.elastic.co/t/filebeat-fails-to-send-docker-container-logs-to-logstash/134419/5 "2018-06-06T14:59:50Z")

</div>

I only needed to change Dockerfile to:  
FROM [docker.elastic.co/beats/filebeat:6.2.4](http://docker.elastic.co/beats/filebeat:6.2.4)  
COPY filebeat.yml /usr/share/filebeat/filebeat.yml  
USER root  
As I had issues with file permissions, check this for more info:  
[Collecting logfiles of Docker containers with filebeat running as Docker container](https://discuss.elastic.co/t/collecting-logfiles-of-docker-containers-with-filebeat-running-as-docker-container/77548)

---

_[View the full topic](https://discuss.elastic.co/t/filebeat-fails-to-send-docker-container-logs-to-logstash/134419)._
