# High Availity Logstash Pipeline

**URL:** <https://discuss.elastic.co/t/high-availity-logstash-pipeline/228925>\
**Category:** Logstash\
**Created:** [April 20, 2020, 7:07pm UTC](https://discuss.elastic.co/t/high-availity-logstash-pipeline/228925 "2020-04-20T19:07:51Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![ksremo](https://avatars.discourse-cdn.com/v4/letter/k/5fc32e/32.png) [@ksremo](https://discuss.elastic.co/u/ksremo)\
**Post date:** [April 20, 2020, 7:07pm UTC](https://discuss.elastic.co/t/high-availity-logstash-pipeline/228925/1 "2020-04-20T19:07:51Z")

</div>

I have 2 Logstash Instances. Both are active. In case of beat-based Logshipper there is a built-in way to load balance the traffic to both Logstash. In case one Logstash is offline because of maintenance or failure traffic is indexed anyways.

How to archive this by using an Logstash pipeline input like JDCB, IMAP and so on.  
What happens if a define a pipeline in both instances. In case of JDBC an database is queried 2 times and this data is double-indexed? What is beast pratice for this use case.

---

<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:** [April 20, 2020, 8:44pm UTC](https://discuss.elastic.co/t/high-availity-logstash-pipeline/228925/2 "2020-04-20T20:44:35Z")

</div>

> [@ksremo](#):
>
> In case of JDBC an database is queried 2 times and this data is double-indexed?

Yes, it is.

---

<div class="post-metadata">

**Author:** ![ksremo](https://avatars.discourse-cdn.com/v4/letter/k/5fc32e/32.png) [@ksremo](https://discuss.elastic.co/u/ksremo)\
**Post date:** [April 21, 2020, 7:26am UTC](https://discuss.elastic.co/t/high-availity-logstash-pipeline/228925/3 "2020-04-21T07:26:56Z")

</div>

ok thanks for the answer but how to make an jdbc input high available?

---

<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:** [April 21, 2020, 3:32pm UTC](https://discuss.elastic.co/t/high-availity-logstash-pipeline/228925/4 "2020-04-21T15:32:36Z")

</div>

I do not know.

---

<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:** [May 19, 2020, 3:32pm UTC](https://discuss.elastic.co/t/high-availity-logstash-pipeline/228925/5 "2020-05-19T15:32:40Z")

</div>

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