# Logstash and RabbitMQ input duplicate messages

**URL:** <https://discuss.elastic.co/t/logstash-and-rabbitmq-input-duplicate-messages/254957>\
**Category:** Logstash\
**Created:** [November 10, 2020, 5:57pm UTC](https://discuss.elastic.co/t/logstash-and-rabbitmq-input-duplicate-messages/254957 "2020-11-10T17:57:20Z")\
**Posts on this page:** 1\
**Showing post:** 2

<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 10, 2020, 6:27pm UTC](https://discuss.elastic.co/t/logstash-and-rabbitmq-input-duplicate-messages/254957/2 "2020-11-10T18:27:18Z")

</div>

You get two copies of the events but you have three copies of logstash?

If so I would start by modifying the logstash configurations to always [add](https://discuss.elastic.co/t/logstash-to-logstash-lumberjack-host-details/253390/2) the hostname where logstash is running. Then review the events. Do the duplicates only come from one host?

That said, this really sounds like a RabbitMQ question. If you have a single queue then messages are load balanced across clients. If you have multiple queues and a fanout or topic then the same message will go to multiple queues and therefore multiple clients.

---

_[View the full topic](https://discuss.elastic.co/t/logstash-and-rabbitmq-input-duplicate-messages/254957)._
