# Running another logstash instance incase one logstash fails

**URL:** <https://discuss.elastic.co/t/running-another-logstash-instance-incase-one-logstash-fails/256656>\
**Category:** Logstash\
**Created:** [November 25, 2020, 12:19pm UTC](https://discuss.elastic.co/t/running-another-logstash-instance-incase-one-logstash-fails/256656 "2020-11-25T12:19:40Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![mahi2](https://avatars.discourse-cdn.com/v4/letter/m/9fc29f/32.png) [@mahi2](https://discuss.elastic.co/u/mahi2)\
**Post date:** [November 25, 2020, 12:19pm UTC](https://discuss.elastic.co/t/running-another-logstash-instance-incase-one-logstash-fails/256656/1 "2020-11-25T12:19:40Z")

</div>

Hi,

I have a scenario where one logstash is already running, and for some reason the machine fails. I want the process to keep going and not wait for the machine to be restarted.It must automatically start taking data from a second logstash which has been taking in data along with the first one simultaneouly all this time.  
Also, I want to use only logstash and not filebeat. I am not sure if load balacing is suitable here for just logstash.  
Is there any feature in logstash to do this?

Thanks in advance.

Regards  
Mahi

---

<div class="post-metadata">

**Author:** ![Badger](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/badger/32/25190_2.png) [@Badger](https://discuss.elastic.co/u/Badger)\
**Post date:** [November 25, 2020, 1:35pm UTC](https://discuss.elastic.co/t/running-another-logstash-instance-incase-one-logstash-fails/256656/2 "2020-11-25T13:35:12Z")

</div>

> [@mahi2](#):
>
> Is there any feature in logstash to do this?

No, but if you are sending data to logstash using a network protocol (tcp, http) then you could use a load balancer to implement failover.

---

<div class="post-metadata">

**Author:** ![mahi2](https://avatars.discourse-cdn.com/v4/letter/m/9fc29f/32.png) [@mahi2](https://discuss.elastic.co/u/mahi2)\
**Post date:** [November 26, 2020, 5:16am UTC](https://discuss.elastic.co/t/running-another-logstash-instance-incase-one-logstash-fails/256656/3 "2020-11-26T05:16:30Z")

</div>

Thanks for the quick reply.  
We are using JDBC input plugin for data fetching and it is scheduled to run every 1 hour.

So my requriement is that there must be continuous data going in elastic search and it should not stop if for some reason my host machine fails.Basically I want to create failover architecture.

Also, I read about persistent queues, can it be used here or does it only send data only if machine is restarted?

Thanks.

---

<div class="post-metadata">

**Author:** ![Badger](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/badger/32/25190_2.png) [@Badger](https://discuss.elastic.co/u/Badger)\
**Post date:** [November 26, 2020, 2:54pm UTC](https://discuss.elastic.co/t/running-another-logstash-instance-incase-one-logstash-fails/256656/4 "2020-11-26T14:54:35Z")

</div>

I do not think logstash supports any clustering for inputs, so this cannot be done.

---

<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:** [December 24, 2020, 2:54pm UTC](https://discuss.elastic.co/t/running-another-logstash-instance-incase-one-logstash-fails/256656/5 "2020-12-24T14:54:44Z")

</div>

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