# Unable to define multiple log file location in filebeat

**URL:** <https://discuss.elastic.co/t/unable-to-define-multiple-log-file-location-in-filebeat/114094>\
**Category:** Beats\
**Tags:** filebeat\
**Created:** [January 4, 2018, 1:38pm UTC](https://discuss.elastic.co/t/unable-to-define-multiple-log-file-location-in-filebeat/114094 "2018-01-04T13:38:01Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Punit\_Bangade](https://avatars.discourse-cdn.com/v4/letter/p/a88e57/32.png) [@Punit\_Bangade](https://discuss.elastic.co/u/Punit_Bangade)\
**Post date:** [January 4, 2018, 1:38pm UTC](https://discuss.elastic.co/t/unable-to-define-multiple-log-file-location-in-filebeat/114094/1 "2018-01-04T13:38:02Z")

</div>

I am trying to configure multiple file location in filebeat.yml but its not sending the logs  
eg `paths: - D:\logs\*.logs - D:\logs\INT1\*.logs`  
Can you please help to resolve the issue

---

<div class="post-metadata">

**Author:** ![steffens](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/steffens/32/79630_2.png) [@steffens](https://discuss.elastic.co/u/steffens)\
**Post date:** [January 5, 2018, 11:20am UTC](https://discuss.elastic.co/t/unable-to-define-multiple-log-file-location-in-filebeat/114094/2 "2018-01-05T11:20:17Z")

</div>

Did you literally write this into your config file? `paths: - D:\logs\*.logs - D:\logs\INT1\*.logs`

This is not valid YAML list. You need to use newlines or use JSON style lists. Plus: the setting must be added to a prospector like:

```auto
filebeat.prospectors:
- ...
  paths:
    - 'D:\logs\*.logs'
    - 'D:\logs\INT1\*.logs'

```

Note: Use single quotes for windows file paths.

---

<div class="post-metadata">

**Author:** ![Punit\_Bangade](https://avatars.discourse-cdn.com/v4/letter/p/a88e57/32.png) [@Punit\_Bangade](https://discuss.elastic.co/u/Punit_Bangade)\
**Post date:** [January 6, 2018, 5:44am UTC](https://discuss.elastic.co/t/unable-to-define-multiple-log-file-location-in-filebeat/114094/3 "2018-01-06T05:44:06Z")

</div>

It worked with single quotes

Thanks for the help

---

<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:** [February 3, 2018, 5:44am UTC](https://discuss.elastic.co/t/unable-to-define-multiple-log-file-location-in-filebeat/114094/4 "2018-02-03T05:44:08Z")

</div>

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