# Two different log files at different location

**URL:** https://discuss.elastic.co/t/two-different-log-files-at-different-location/197456
**Category:** Logstash
**Created:** [August 30, 2019, 7:17am UTC](https://discuss.elastic.co/t/two-different-log-files-at-different-location/197456 "2019-08-30T07:17:48Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![Saravana37](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/saravana37/32/85237_2.png) [@Saravana37](https://discuss.elastic.co/u/Saravana37)
#### Post date: [August 30, 2019, 7:17am UTC](https://discuss.elastic.co/t/two-different-log-files-at-different-location/197456/1 "2019-08-30T07:17:48Z")

</div>

Hello Techies,

Please help me since i am new to ELK stack.  
I have two kinds of log files with different names on the different folders. I am trying to Pull the data to Logstash and providing two Grok filters match for the same. If i use two different Config files , logstash works properly . How should i combine both of them and work in a single logstash instance.

Thanks and Regards  
Saravana S

---

<div class="post-metadata">

### Author: ![guyboertje](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/guyboertje/32/31592_2.png) [@guyboertje](https://discuss.elastic.co/u/guyboertje)
#### Post date: [September 3, 2019, 12:48pm UTC](https://discuss.elastic.co/t/two-different-log-files-at-different-location/197456/2 "2019-09-03T12:48:15Z")

</div>

The file input (I'm assuming you're using that) has a setting `path` the value of which can be a string or an array. When it is an array, all glob patterns are evaluated. You should put both paths into the array.

---

<div class="post-metadata">

### Author: ![Saravana37](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/saravana37/32/85237_2.png) [@Saravana37](https://discuss.elastic.co/u/Saravana37)
#### Post date: [September 4, 2019, 5:08am UTC](https://discuss.elastic.co/t/two-different-log-files-at-different-location/197456/3 "2019-09-04T05:08:04Z")

</div>

Thank You so much guyboertje. It worked .

---

<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 2, 2019, 5:08am UTC](https://discuss.elastic.co/t/two-different-log-files-at-different-location/197456/4 "2019-10-02T05:08:10Z")

</div>

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