# How to build Logstash cluster for DB inputs

**URL:** <https://discuss.elastic.co/t/how-to-build-logstash-cluster-for-db-inputs/198211>\
**Category:** Beats\
**Created:** [September 5, 2019, 9:40am UTC](https://discuss.elastic.co/t/how-to-build-logstash-cluster-for-db-inputs/198211 "2019-09-05T09:40:19Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![bala2](https://avatars.discourse-cdn.com/v4/letter/b/f17d59/32.png) [@bala2](https://discuss.elastic.co/u/bala2)\
**Post date:** [September 5, 2019, 9:40am UTC](https://discuss.elastic.co/t/how-to-build-logstash-cluster-for-db-inputs/198211/1 "2019-09-05T09:40:19Z")

</div>

Currently we got a requirement, where two logstash with JDBC input plugin needs to be configured with same DB queries.One logstash will be active all time, if that logstash instance goes down another instance should start automatically.

Is there a way to configure logstash as per the above requirement

---

<div class="post-metadata">

**Author:** ![Scott2M](https://avatars.discourse-cdn.com/v4/letter/s/919ad9/32.png) [@Scott2M](https://discuss.elastic.co/u/Scott2M)\
**Post date:** [September 5, 2019, 9:58am UTC](https://discuss.elastic.co/t/how-to-build-logstash-cluster-for-db-inputs/198211/2 "2019-09-05T09:58:27Z")

</div>

The RESTful endpoint for each site is stored in a single DB on server [x](https://www.mcdvoice.onl/). I want to create a logstash input plugin to consume the logs.

---

<div class="post-metadata">

**Author:** ![bala2](https://avatars.discourse-cdn.com/v4/letter/b/f17d59/32.png) [@bala2](https://discuss.elastic.co/u/bala2)\
**Post date:** [September 5, 2019, 10:00am UTC](https://discuss.elastic.co/t/how-to-build-logstash-cluster-for-db-inputs/198211/3 "2019-09-05T10:00:23Z")

</div>

Hi Scott,

Can you please help me in eloborating your solution. I didnt get your point

---

<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:** [October 3, 2019, 12:00pm UTC](https://discuss.elastic.co/t/how-to-build-logstash-cluster-for-db-inputs/198211/4 "2019-10-03T12:00:28Z")

</div>

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