# Filebeat to send containers logs

**URL:** <https://discuss.elastic.co/t/filebeat-to-send-containers-logs/69609>\
**Category:** Beats\
**Created:** [December 20, 2016, 6:59pm UTC](https://discuss.elastic.co/t/filebeat-to-send-containers-logs/69609 "2016-12-20T18:59:11Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![overip](https://avatars.discourse-cdn.com/v4/letter/o/cdc98d/32.png) [@overip](https://discuss.elastic.co/u/overip)\
**Post date:** [December 20, 2016, 6:59pm UTC](https://discuss.elastic.co/t/filebeat-to-send-containers-logs/69609/1 "2016-12-20T18:59:11Z")

</div>

Hello,  
I need to configure Filebeat tp send containers logs to Elasticsearch. Does anybody know how to do that?  
I guess I just need to forward STDOUT to Elasticsearch, but I can't figure out how to do it.

Thanks!

---

<div class="post-metadata">

**Author:** ![monica](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/monica/32/3696_2.png) [@monica](https://discuss.elastic.co/u/monica)\
**Post date:** [December 20, 2016, 9:47pm UTC](https://discuss.elastic.co/t/filebeat-to-send-containers-logs/69609/2 "2016-12-20T21:47:56Z")

</div>

If you are using Docker containers, there are a few options how you can get the container logs. Please check the [slides](https://speakerdeck.com/monicasarbu/monitor-your-containers-with-the-elastic-stack-1) for more details with advantages and disadvantages of each option. No matter of what option you use, you need to install Filebeat in a separate Docker container on the same host as your Docker containers.  
The easyest option would be to use the json logging driver (the default in Docker) and then Filebeat with [json](https://www.elastic.co/guide/en/beats/filebeat/5.1/configuration-filebeat-options.html#config-json) enabled.

---

<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:** [January 10, 2017, 6:59pm UTC](https://discuss.elastic.co/t/filebeat-to-send-containers-logs/69609/3 "2017-01-10T18:59:38Z")

</div>

This topic was automatically closed after 21 days. New replies are no longer allowed.
