# Runing logstash service with number of config files

**URL:** <https://discuss.elastic.co/t/runing-logstash-service-with-number-of-config-files/24487>\
**Category:** Logstash\
**Created:** [June 27, 2015, 7:22pm UTC](https://discuss.elastic.co/t/runing-logstash-service-with-number-of-config-files/24487 "2015-06-27T19:22:10Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![karasmeitar](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/karasmeitar/32/35703_2.png) [@karasmeitar](https://discuss.elastic.co/u/karasmeitar)\
**Post date:** [June 27, 2015, 7:22pm UTC](https://discuss.elastic.co/t/runing-logstash-service-with-number-of-config-files/24487/1 "2015-06-27T19:22:10Z")

</div>

Hi All,  
I'm running logstash as a service on ubuntu machine with 10 different config files.each config get different doc type from different s3 bucket and insert it or delete it from elasticsearch.  
Yesterday i saw that logstash is stuck on specific config that took him 1 day to complete and because of that non of the other configs was started.  
what should i do? run 10 different Crontab jobs?

10x.

---

<div class="post-metadata">

**Author:** ![warkolm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/warkolm/32/39224_2.png) [@warkolm](https://discuss.elastic.co/u/warkolm)\
**Post date:** [June 27, 2015, 9:59pm UTC](https://discuss.elastic.co/t/runing-logstash-service-with-number-of-config-files/24487/2 "2015-06-27T21:59:29Z")

</div>

Try using the `-w` flag to give Logstash more workers (ie threads).

---

<div class="post-metadata">

**Author:** ![karasmeitar](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/karasmeitar/32/35703_2.png) [@karasmeitar](https://discuss.elastic.co/u/karasmeitar)\
**Post date:** [June 28, 2015, 4:55am UTC](https://discuss.elastic.co/t/runing-logstash-service-with-number-of-config-files/24487/3 "2015-06-28T04:55:26Z")

</div>

The problem is that my elasticsearch nodes are at 100% cpu.  
Can't i tell logstash to switch configuration every file input in s3?

---

<div class="post-metadata">

**Author:** ![warkolm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/warkolm/32/39224_2.png) [@warkolm](https://discuss.elastic.co/u/warkolm)\
**Post date:** [June 28, 2015, 5:36am UTC](https://discuss.elastic.co/t/runing-logstash-service-with-number-of-config-files/24487/4 "2015-06-28T05:36:01Z")

</div>

Sounds like you need more resources then, there's not much I can think of at the moment to help here sorry.

---

<div class="post-metadata">

**Author:** ![Architha](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/architha/32/92477_2.png) [@Architha](https://discuss.elastic.co/u/Architha)\
**Post date:** [January 22, 2016, 10:24am UTC](https://discuss.elastic.co/t/runing-logstash-service-with-number-of-config-files/24487/5 "2016-01-22T10:24:03Z")

</div>

@karasmeitar

Hi , just wanted to know if you have solved the running of many config files ? I have a similar situation where i have to run many config files with some scheduling involved. Is it possible ?

Thanks in advance 🙂

---

<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:** [July 6, 2017, 5:14am UTC](https://discuss.elastic.co/t/runing-logstash-service-with-number-of-config-files/24487/6 "2017-07-06T05:14:49Z")

</div>


