# How to install 2 logstash in one machine?

**URL:** <https://discuss.elastic.co/t/how-to-install-2-logstash-in-one-machine/97502>\
**Category:** Logstash\
**Created:** [August 18, 2017, 12:44am UTC](https://discuss.elastic.co/t/how-to-install-2-logstash-in-one-machine/97502 "2017-08-18T00:44:34Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![jogoinar10](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/jogoinar10/32/20068_2.png) [@jogoinar10](https://discuss.elastic.co/u/jogoinar10)\
**Post date:** [August 18, 2017, 12:44am UTC](https://discuss.elastic.co/t/how-to-install-2-logstash-in-one-machine/97502/1 "2017-08-18T00:44:34Z")

</div>

How can i run 2 logstash in one machne so that if the output in the first logstash instance in not available, 2nd logstash instance will still continue it's work.

---

<div class="post-metadata">

**Author:** ![jun\_cao\_cn](https://avatars.discourse-cdn.com/v4/letter/j/eb9ed0/32.png) [@jun\_cao\_cn](https://discuss.elastic.co/u/jun_cao_cn)\
**Post date:** [August 18, 2017, 12:53am UTC](https://discuss.elastic.co/t/how-to-install-2-logstash-in-one-machine/97502/2 "2017-08-18T00:53:06Z")

</div>

you can try to start logstash with different config file , by

> -f your\_logstash\_conf.conf

---

<div class="post-metadata">

**Author:** ![jogoinar10](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/jogoinar10/32/20068_2.png) [@jogoinar10](https://discuss.elastic.co/u/jogoinar10)\
**Post date:** [August 18, 2017, 1:41am UTC](https://discuss.elastic.co/t/how-to-install-2-logstash-in-one-machine/97502/3 "2017-08-18T01:41:40Z")

</div>

it will not merge with another config files?

---

<div class="post-metadata">

**Author:** ![magnusbaeck](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/magnusbaeck/32/44943_2.png) [@magnusbaeck](https://discuss.elastic.co/u/magnusbaeck)\
**Post date:** [August 18, 2017, 5:17am UTC](https://discuss.elastic.co/t/how-to-install-2-logstash-in-one-machine/97502/4 "2017-08-18T05:17:12Z")

</div>

> it will not merge with another config files?

Not if you point Logstash to different files or directories.

You'll also have to configure instance-unique paths for data and logs (e.g. via command-line flags).

---

<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:** [September 15, 2017, 5:17am UTC](https://discuss.elastic.co/t/how-to-install-2-logstash-in-one-machine/97502/5 "2017-09-15T05:17:40Z")

</div>

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