# How can I use filebeat to get docker container logs and daemon logs to forward to logstash

**URL:** <https://discuss.elastic.co/t/how-can-i-use-filebeat-to-get-docker-container-logs-and-daemon-logs-to-forward-to-logstash/219008>\
**Category:** Beats\
**Tags:** filebeat\
**Created:** [February 12, 2020, 2:14pm UTC](https://discuss.elastic.co/t/how-can-i-use-filebeat-to-get-docker-container-logs-and-daemon-logs-to-forward-to-logstash/219008 "2020-02-12T14:14:34Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![BIs1](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/bis1/32/60811_2.png) [@BIs1](https://discuss.elastic.co/u/BIs1)\
**Post date:** [February 12, 2020, 2:14pm UTC](https://discuss.elastic.co/t/how-can-i-use-filebeat-to-get-docker-container-logs-and-daemon-logs-to-forward-to-logstash/219008/1 "2020-02-12T14:14:35Z")

</div>

Hi,

I am trying to get logs from docker container which is running apache/nifi on centos box. How can I use filebeat to get those nifi logs and forward it to logstash?

When I use command "docker logs d2c8975d5c26" I can see the logs . I also would like to forward daemon logs from "journalctl -u docker.service" if possible.

Thanks,

---

<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:** [March 11, 2020, 2:14pm UTC](https://discuss.elastic.co/t/how-can-i-use-filebeat-to-get-docker-container-logs-and-daemon-logs-to-forward-to-logstash/219008/2 "2020-03-11T14:14:37Z")

</div>

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