# RabbtiMQ cluster with logstash cluster

**URL:** <https://discuss.elastic.co/t/rabbtimq-cluster-with-logstash-cluster/119392>\
**Category:** Logstash\
**Created:** [February 11, 2018, 9:03pm UTC](https://discuss.elastic.co/t/rabbtimq-cluster-with-logstash-cluster/119392 "2018-02-11T21:03:19Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![anshul\_pandey](https://avatars.discourse-cdn.com/v4/letter/a/9dc877/32.png) [@anshul\_pandey](https://discuss.elastic.co/u/anshul_pandey)\
**Post date:** [February 11, 2018, 9:03pm UTC](https://discuss.elastic.co/t/rabbtimq-cluster-with-logstash-cluster/119392/1 "2018-02-11T21:03:19Z")

</div>

Hi all,

I am quite sure that this a solved problem, so trying to figure out the optimal way...

My ELK stack is pretty basic, clients pushing message to RabbitMQ & Logstash pulls data (uses input plugin for RabbitMQ) from Queue and post it to elastic using ElasticSearch o/p plugin.

Now this works as expected, but now we would like fail over/resiliency to out environment for ex , if we box with rabbitMQ is down, other one should pick up aka RabbitMQ cluster,. Also just for availability/scalability side we would like to use, Logstash cluster that can pick up this RabbitMQ cluster and handle data for posting to Elastic DB.

I would need some help/recommendation on achieving steps above.

---

<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:** [February 11, 2018, 9:26pm UTC](https://discuss.elastic.co/t/rabbtimq-cluster-with-logstash-cluster/119392/2 "2018-02-11T21:26:30Z")

</div>

Logstash doesn't cluster like RabbitMQ or Elasticsearch, but that won't really be a problem in your case. Set up as many Logstash instances as you wish and configure their rabbitmq inputs to consume from the same RabbitMQ queue. The hostname they connect to should point to a load balancer that dispatches connections to an available server.

---

<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:** [March 11, 2018, 9:26pm UTC](https://discuss.elastic.co/t/rabbtimq-cluster-with-logstash-cluster/119392/3 "2018-03-11T21:26:58Z")

</div>

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