# Creating indices from multiple inputs

**URL:** <https://discuss.elastic.co/t/creating-indices-from-multiple-inputs/183239>\
**Category:** Logstash\
**Created:** [May 29, 2019, 6:52am UTC](https://discuss.elastic.co/t/creating-indices-from-multiple-inputs/183239 "2019-05-29T06:52:49Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Vikash\_Singh1](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/vikash_singh1/32/42119_2.png) [@Vikash\_Singh1](https://discuss.elastic.co/u/Vikash_Singh1)\
**Post date:** [May 29, 2019, 6:52am UTC](https://discuss.elastic.co/t/creating-indices-from-multiple-inputs/183239/1 "2019-05-29T06:52:49Z")

</div>

I am trying to fetch the logs from multiple location and would like to create a single index for those multiple logs...is there anyway via which I can configure in input filter in .conf file???  
input {  
file {  
path =\> "/elk/MAILGW-SMPTPD/elk/MAILGW-SMPTPD/spamfilter-3/qmail/\*"  
start\_position =\> "beginning"  
}  
}  
In place of path can I paste multiple path locations or can use "path1=\>..." something I like that??????

---

<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:** [May 29, 2019, 12:45pm UTC](https://discuss.elastic.co/t/creating-indices-from-multiple-inputs/183239/2 "2019-05-29T12:45:47Z")

</div>

> [@Vikash\_Singh1](#):
>
> In place of path can I paste multiple path locations

Yes. The path option to a file input takes an "array", so you can pass it multiple paths, each of which can contain wildcards.

```
path => ["/home/user/foo.txt", "/home/user/bar.txt"]

```

---

<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:** [June 26, 2019, 12:45pm UTC](https://discuss.elastic.co/t/creating-indices-from-multiple-inputs/183239/3 "2019-06-26T12:45:48Z")

</div>

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