# RabbitMQ is losing messages

**URL:** <https://discuss.elastic.co/t/rabbitmq-is-losing-messages/36181>\
**Category:** Logstash\
**Created:** [December 2, 2015, 1:57pm UTC](https://discuss.elastic.co/t/rabbitmq-is-losing-messages/36181 "2015-12-02T13:57:37Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![billy6](https://avatars.discourse-cdn.com/v4/letter/b/cab0a1/32.png) [@billy6](https://discuss.elastic.co/u/billy6)\
**Post date:** [December 2, 2015, 1:57pm UTC](https://discuss.elastic.co/t/rabbitmq-is-losing-messages/36181/1 "2015-12-02T13:57:37Z")

</div>

I have just installed RabbitMQ, I'm using it with logstash. I have been sending messages but I lose a lot of data. I have no idea how could I solve it. I'm using the default configuration in rabbitMQ.

These are the output in logstash and the input in logstash:

output {  
rabbitmq {  
host =\> "IPHOST"  
exchange =\> "logstash-rabbitmq"  
exchange\_type =\> "direct"  
key =\> "logstash-key"  
workers =\>4  
durable =\> true  
persistent =\> true  
}  
}

input  
{

rabbitmq {  
host =\> "IPHOST"  
queue =\> "logstash-queue"  
durable =\> true  
key =\> "logstash-key"  
threads =\> 8  
prefetch\_count =\> 100  
port =\> 5672  
user =\> "test"  
password =\> "test"  
ack =\> false  
exchange =\> "logstash-rabbitmq"  
}

}  
I'm using RabbitMQ Management in order to see the evolution of my queue. When I send 10000 messages I only receive less than a half. Is there any parameter I should change to imporve the behaviour of rabbitMQ? I was going to use it in order to don't loose messages but I'm loosing even more than when I didn't have it.

thank you

---

<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:** [July 6, 2017, 5:20am UTC](https://discuss.elastic.co/t/rabbitmq-is-losing-messages/36181/2 "2017-07-06T05:20:22Z")

</div>


