# Multiple prospectors in filebeat

**URL:** <https://discuss.elastic.co/t/multiple-prospectors-in-filebeat/148344>\
**Category:** Beats\
**Tags:** filebeat\
**Created:** [September 12, 2018, 2:42pm UTC](https://discuss.elastic.co/t/multiple-prospectors-in-filebeat/148344 "2018-09-12T14:42:15Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![chandra0651](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/chandra0651/32/30484_2.png) [@chandra0651](https://discuss.elastic.co/u/chandra0651)\
**Post date:** [September 12, 2018, 2:42pm UTC](https://discuss.elastic.co/t/multiple-prospectors-in-filebeat/148344/1 "2018-09-12T14:42:15Z")

</div>

Hi i have 10 different type of log files in one folder which all end with "_.log" as of now i have been using one prospector to poll all the data using "/_.log" as path but now i have to change some multiline settings for one of the log file. can i use two prospectors one with "/\*.log" and one with something like "/1.log". Will this setting pull the logs from "1.log" once or twice

- type: log  
enabled: true  
paths:

- type: log  
enabled: true  
paths:

---

<div class="post-metadata">

**Author:** ![kvch](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/kvch/32/72058_2.png) [@kvch](https://discuss.elastic.co/u/kvch)\
**Post date:** [September 14, 2018, 9:36am UTC](https://discuss.elastic.co/t/multiple-prospectors-in-filebeat/148344/2 "2018-09-14T09:36:42Z")

</div>

Yes, the prospector configured to read paths `*.log` will try to read `1.log`, too. Do not try to read from the same file using multiple prospectors.  
You could set the option `exclude_files` of your prospector which has the wildcard path: [https://www.elastic.co/guide/en/beats/filebeat/current/filebeat-input-log.html#filebeat-input-log-exclude-files](https://www.elastic.co/guide/en/beats/filebeat/current/filebeat-input-log.html#filebeat-input-log-exclude-files)

```auto
- type: log
  enabled: true
  paths:
   - /opt/logs/*.log
  exclude_files: ['/opt/logs/1.log']

```

---

<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 12, 2018, 9:36am UTC](https://discuss.elastic.co/t/multiple-prospectors-in-filebeat/148344/3 "2018-10-12T09:36:50Z")

</div>

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