# Multiple inputs or single input in logstash config, Which is better?

**URL:** https://discuss.elastic.co/t/multiple-inputs-or-single-input-in-logstash-config-which-is-better/74981
**Category:** Logstash
**Created:** [February 14, 2017, 7:41am UTC](https://discuss.elastic.co/t/multiple-inputs-or-single-input-in-logstash-config-which-is-better/74981 "2017-02-14T07:41:00Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![Mayank\_Agrawal](https://avatars.discourse-cdn.com/v4/letter/m/3ab097/32.png) [@Mayank\_Agrawal](https://discuss.elastic.co/u/Mayank_Agrawal)
#### Post date: [February 14, 2017, 7:41am UTC](https://discuss.elastic.co/t/multiple-inputs-or-single-input-in-logstash-config-which-is-better/74981/1 "2017-02-14T07:41:00Z")

</div>

**Scenario** :  
Files that I need logstash to process have same file name pattern (say _xyz.log_). Earlier I was using single file input, but had issues reading .sincedb file (logstash is not updating it properly).  
So I am thinking it to replace the single file input by multiple inputs (single input for each file), so that .sincedb is created separately for each file.  
There can be at the most 30 files, so at the max 30 file input plugins.

**Question** : Is it ok for logstash to have 30 file inputs ?? Will there be any impact on performance etc. ?

---

<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: [March 14, 2017, 7:41am UTC](https://discuss.elastic.co/t/multiple-inputs-or-single-input-in-logstash-config-which-is-better/74981/2 "2017-03-14T07:41:07Z")

</div>

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