# Multiple logstash instances don't work

**URL:** <https://discuss.elastic.co/t/multiple-logstash-instances-dont-work/42218>\
**Category:** Logstash\
**Created:** [February 19, 2016, 8:50am UTC](https://discuss.elastic.co/t/multiple-logstash-instances-dont-work/42218 "2016-02-19T08:50:20Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![punit\_naik1](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/punit_naik1/32/7239_2.png) [@punit\_naik1](https://discuss.elastic.co/u/punit_naik1)\
**Post date:** [February 19, 2016, 8:50am UTC](https://discuss.elastic.co/t/multiple-logstash-instances-dont-work/42218/1 "2016-02-19T08:50:20Z")

</div>

I have multiple technologies running on a single PC like Hadoop, HBase and all. So I have written that many config files. The way I deploy them is by running a for loop over all the configs and deploying them one by one in a separate logstash instance in a thread. These configs output ERROR events to riemann:

```
for(all configs)
do
(bin/logstash -f config &)
finish

```

But this way not a single config works. So I ran a single losgatsh instance on a single config and it worked. Can you please tell me why multiple logstash instances on a single PC are not working?

---

<div class="post-metadata">

**Author:** ![Python\_Coder](https://avatars.discourse-cdn.com/v4/letter/p/aeb1de/32.png) [@Python\_Coder](https://discuss.elastic.co/u/Python_Coder)\
**Post date:** [February 19, 2016, 9:06am UTC](https://discuss.elastic.co/t/multiple-logstash-instances-dont-work/42218/2 "2016-02-19T09:06:45Z")

</div>

You might ask the same question as the bellow thread, visit the following thread, it may be helpful 🙂

> [@Multiple Logstash Instances on Single Server](https://discuss.elastic.co/t/multiple-logstash-instances-on-single-server/28947):
>
> Hi, I would like to have several distinct logstash instances running on the same server. What is the best way to accomplish this? I already have a single instance of logstash running, it monitors a large number of files and folders and is performing well.I now have a situation where I need to run a completely different configuration file to perform entirely different activities on a completely different set of folders and files on the same server. When I try to run the second instance I get t…

---

<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:10am UTC](https://discuss.elastic.co/t/multiple-logstash-instances-dont-work/42218/3 "2017-07-06T05:10:40Z")

</div>


