# Filebeat not able to read multiple log files

**URL:** <https://discuss.elastic.co/t/filebeat-not-able-to-read-multiple-log-files/102817>\
**Category:** Beats\
**Created:** [October 5, 2017, 9:34am UTC](https://discuss.elastic.co/t/filebeat-not-able-to-read-multiple-log-files/102817 "2017-10-05T09:34:32Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![atosguest](https://avatars.discourse-cdn.com/v4/letter/a/6f9a4e/32.png) [@atosguest](https://discuss.elastic.co/u/atosguest)\
**Post date:** [October 5, 2017, 9:34am UTC](https://discuss.elastic.co/t/filebeat-not-able-to-read-multiple-log-files/102817/1 "2017-10-05T09:34:32Z")

</div>

Hi All,

I am using Filebeat 5.5 with ELK stack 5.5.  
I configured filebeat.yml file to sent all logs to logstash. it is working fine when I am giving single log file but when I am trying to configure it for multiple log files it is not working.

I am not able to see any logs from multiple log file.

below I pasted my filebeat.yml file for your reference:

```
indent preformatted text by 4 spaces
filebeat.prospectors:
- input_type: log
  paths:
       - "/var/log/tomcat/tomcat.log"
       - "/var/log/cron"
       - "/var/log/messages"
  document_type: mytest_log
  fields:
    app_id: mylogs

#---------------- Logstash output ----
output.logstash:
  hosts: ["LOGSTASH_IP:5044"]
indent preformatted text by 4 spaces
```

---

<div class="post-metadata">

**Author:** ![warkolm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/warkolm/32/39224_2.png) [@warkolm](https://discuss.elastic.co/u/warkolm)\
**Post date:** [October 6, 2017, 4:38am UTC](https://discuss.elastic.co/t/filebeat-not-able-to-read-multiple-log-files/102817/2 "2017-10-06T04:38:10Z")

</div>

Can you please format the config using the `</>` button so we can see exactly what it's setup as and not the formatted way it is now.

---

<div class="post-metadata">

**Author:** ![atosguest](https://avatars.discourse-cdn.com/v4/letter/a/6f9a4e/32.png) [@atosguest](https://discuss.elastic.co/u/atosguest)\
**Post date:** [October 6, 2017, 6:11am UTC](https://discuss.elastic.co/t/filebeat-not-able-to-read-multiple-log-files/102817/3 "2017-10-06T06:11:18Z")

</div>

Hi,

I have updated the configuration file, pls check it and let me know if you find any issue with the configuration file.

---

<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:** [October 26, 2017, 9:34am UTC](https://discuss.elastic.co/t/filebeat-not-able-to-read-multiple-log-files/102817/4 "2017-10-26T09:34:45Z")

</div>

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