# Filebeat reads logs from various locations?

**URL:** <https://discuss.elastic.co/t/filebeat-reads-logs-from-various-locations/348332>\
**Category:** Elasticsearch\
**Created:** [November 30, 2023, 12:59pm UTC](https://discuss.elastic.co/t/filebeat-reads-logs-from-various-locations/348332 "2023-11-30T12:59:15Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Satsan](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/satsan/32/128158_2.png) [@Satsan](https://discuss.elastic.co/u/Satsan)\
**Post date:** [November 30, 2023, 12:59pm UTC](https://discuss.elastic.co/t/filebeat-reads-logs-from-various-locations/348332/1 "2023-11-30T12:59:15Z")

</div>

Filebeat reads logs from various locations in same yml file and sends them to the ELK (Elasticsearch, Logstash, and Kibana) stack for processing and analysis?

For instance:  
-log.file.path: /etc/home/usr/logs  
-log.file.path: /etc/files/logs

---

<div class="post-metadata">

**Author:** ![leandrojmp](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/leandrojmp/32/107231_2.png) [@leandrojmp](https://discuss.elastic.co/u/leandrojmp)\
**Post date:** [November 30, 2023, 2:16pm UTC](https://discuss.elastic.co/t/filebeat-reads-logs-from-various-locations/348332/2 "2023-11-30T14:16:27Z")

</div>

> [@Satsan](#):
>
> Filebeat reads logs from various locations in same yml file and sends them to the ELK (Elasticsearch, Logstash, and Kibana) stack for processing and analysis?

This is possible, and it is the first example in the [documentation](https://www.elastic.co/guide/en/beats/filebeat/current/filebeat-input-filestream.html#filebeat-input-filestream).

You can add multiple paths to a filestream input or use different filestream inputs, as the documentation example shows.

---

<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:** [December 28, 2023, 2:17pm UTC](https://discuss.elastic.co/t/filebeat-reads-logs-from-various-locations/348332/3 "2023-12-28T14:17:06Z")

</div>

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