# Auto acknowledgement to message from RabbitMQ

**URL:** <https://discuss.elastic.co/t/auto-acknowledgement-to-message-from-rabbitmq/75511>\
**Category:** Logstash\
**Created:** [February 17, 2017, 2:28pm UTC](https://discuss.elastic.co/t/auto-acknowledgement-to-message-from-rabbitmq/75511 "2017-02-17T14:28:02Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Makra](https://avatars.discourse-cdn.com/v4/letter/m/8491ac/32.png) [@Makra](https://discuss.elastic.co/u/Makra)\
**Post date:** [February 17, 2017, 2:28pm UTC](https://discuss.elastic.co/t/auto-acknowledgement-to-message-from-rabbitmq/75511/1 "2017-02-17T14:28:02Z")

</div>

Hi  
List-users  
I have a logstash consumer which is reading messages from RabbitMQ queues through rabbitmq input. I want to speed up the delivery using auto acknowledgement = true . I have checked the logstash [documentation](https://www.elastic.co/guide/en/logstash/current/plugins-inputs-rabbitmq.html) for auto acknowledgement features. But there is nothing such auto ack attribute here.

How can i accomplish this features through logstash.

> input {  
> rabbitmq {  
> host =\> "localhost"  
> queue =\> "MessageQueue"  
> durable =\> true  
> key =\> "MessageKey"  
> exchange =\> "MessageExchange"  
> exchange\_type =\> "topic"  
> port =\>"5672"  
> password =\> "rabbit"  
> auto\_delete =\> false  
> }  
> }

Thanks

---

<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 17, 2017, 2:30pm UTC](https://discuss.elastic.co/t/auto-acknowledgement-to-message-from-rabbitmq/75511/2 "2017-02-17T14:30:37Z")

</div>

Not sure exactly what you mean. What happens when you set `ack => false` in your rabbitmq input?

---

<div class="post-metadata">

**Author:** ![Makra](https://avatars.discourse-cdn.com/v4/letter/m/8491ac/32.png) [@Makra](https://discuss.elastic.co/u/Makra)\
**Post date:** [February 17, 2017, 2:34pm UTC](https://discuss.elastic.co/t/auto-acknowledgement-to-message-from-rabbitmq/75511/3 "2017-02-17T14:34:35Z")

</div>

Hi  
Magnusbaeck  
Thanks for quick reply. I have not set ack = \> false as i think , it will make consumer to send no ack at all to RMQ.

[Acknowledgement is basically a notification for RabbitMQ broker that a particular message has been processed and the broker doesn't need to worry about it anymore. In particular it shouldn't redeliver to message to this or some other consumer.](https://wheleph.github.io/2015/06/27/on-rabbitmq-automatic-ack-and-reliable-message-processing/)

I am trying to achieve the above through logstash

Thanks

---

<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 17, 2017, 2:37pm UTC](https://discuss.elastic.co/t/auto-acknowledgement-to-message-from-rabbitmq/75511/4 "2017-02-17T14:37:22Z")

</div>

The `ack` option selects whether explicit acks will be sent or if auto-acks will be used.

---

<div class="post-metadata">

**Author:** ![Makra](https://avatars.discourse-cdn.com/v4/letter/m/8491ac/32.png) [@Makra](https://discuss.elastic.co/u/Makra)\
**Post date:** [February 17, 2017, 2:40pm UTC](https://discuss.elastic.co/t/auto-acknowledgement-to-message-from-rabbitmq/75511/5 "2017-02-17T14:40:08Z")

</div>

Awesome, i.e ack =\> false in the logstash configuration will make sure auto ack to true.

---

<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 17, 2017, 2:40pm UTC](https://discuss.elastic.co/t/auto-acknowledgement-to-message-from-rabbitmq/75511/6 "2017-03-17T14:40:27Z")

</div>

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