# Logstash with many config files vs one config with many files

**URL:** https://discuss.elastic.co/t/logstash-with-many-config-files-vs-one-config-with-many-files/295473
**Category:** Logstash
**Created:** [January 26, 2022, 3:11pm UTC](https://discuss.elastic.co/t/logstash-with-many-config-files-vs-one-config-with-many-files/295473 "2022-01-26T15:11:10Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![nikssssss](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/nikssssss/32/115176_2.png) [@nikssssss](https://discuss.elastic.co/u/nikssssss)
#### Post date: [January 26, 2022, 3:11pm UTC](https://discuss.elastic.co/t/logstash-with-many-config-files-vs-one-config-with-many-files/295473/1 "2022-01-26T15:11:10Z")

</div>

hello everybody,  
i have not understand what is the best solution if you have many input files. Should you use one config file with the configuration of input files or create one config file per input file. (ex. 5-10 files)

---

<div class="post-metadata">

### Author: ![leandrojmp](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/leandrojmp/32/107231_2.png) [@leandrojmp](https://discuss.elastic.co/u/leandrojmp)
#### Post date: [January 26, 2022, 3:24pm UTC](https://discuss.elastic.co/t/logstash-with-many-config-files-vs-one-config-with-many-files/295473/2 "2022-01-26T15:24:54Z")

</div>

Many input files for the same pipeline or are you talking about multiple pipelines?

You can have one big file with everything or point to a path with multiple config files, it really depends on what works best for you.

In my case I use multiple pipelines defined in the `pipelines.yml` and each one of those pipelines can point to a single config file or to a path with other config files, this depends on the complexity of the pipeline, breaking your pipeline into smaller files can help you when editing or adding new filters.

---

<div class="post-metadata">

### Author: ![nikssssss](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/nikssssss/32/115176_2.png) [@nikssssss](https://discuss.elastic.co/u/nikssssss)
#### Post date: [January 26, 2022, 3:44pm UTC](https://discuss.elastic.co/t/logstash-with-many-config-files-vs-one-config-with-many-files/295473/3 "2022-01-26T15:44:46Z")

</div>

ok @leandrojmp thank you

---

<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 23, 2022, 3:45pm UTC](https://discuss.elastic.co/t/logstash-with-many-config-files-vs-one-config-with-many-files/295473/4 "2022-02-23T15:45:53Z")

</div>

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