# How to give multiple files in different paths as input to logstash

**URL:** <https://discuss.elastic.co/t/how-to-give-multiple-files-in-different-paths-as-input-to-logstash/228094>\
**Category:** Logstash\
**Created:** [April 15, 2020, 11:04am UTC](https://discuss.elastic.co/t/how-to-give-multiple-files-in-different-paths-as-input-to-logstash/228094 "2020-04-15T11:04:32Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![poddraj](https://avatars.discourse-cdn.com/v4/letter/p/5fc32e/32.png) [@poddraj](https://discuss.elastic.co/u/poddraj)\
**Post date:** [April 15, 2020, 11:04am UTC](https://discuss.elastic.co/t/how-to-give-multiple-files-in-different-paths-as-input-to-logstash/228094/1 "2020-04-15T11:04:33Z")

</div>

Hi All,

I have a scenario where two log files are in different directory paths but the log structure of them is same. I want to pass both of them as input files in a single config file so that the filter in it will parse the logs.  
Can someone please suggest the syntax to pass more than 1 log file as input in logstash.

---

<div class="post-metadata">

**Author:** ![Badger](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/badger/32/25190_2.png) [@Badger](https://discuss.elastic.co/u/Badger)\
**Post date:** [April 15, 2020, 2:35pm UTC](https://discuss.elastic.co/t/how-to-give-multiple-files-in-different-paths-as-input-to-logstash/228094/2 "2020-04-15T14:35:28Z")

</div>

For a file input you can pass it an [array of paths](https://www.elastic.co/guide/en/logstash/7.6/configuration-file-structure.html#list).

---

<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:** [May 13, 2020, 2:35pm UTC](https://discuss.elastic.co/t/how-to-give-multiple-files-in-different-paths-as-input-to-logstash/228094/3 "2020-05-13T14:35:30Z")

</div>

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