# RabbitMQ Ack Question

**URL:** <https://discuss.elastic.co/t/rabbitmq-ack-question/31715>\
**Category:** Logstash\
**Created:** [October 6, 2015, 4:00pm UTC](https://discuss.elastic.co/t/rabbitmq-ack-question/31715 "2015-10-06T16:00:32Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![spynxo](https://avatars.discourse-cdn.com/v4/letter/s/b77776/32.png) [@spynxo](https://discuss.elastic.co/u/spynxo)\
**Post date:** [October 6, 2015, 4:00pm UTC](https://discuss.elastic.co/t/rabbitmq-ack-question/31715/1 "2015-10-06T16:00:32Z")

</div>

It seems like with RabbitMQ you can enable acknowledgements on the input so the message only gets deleted from the server if it was successfully received. Is there any way to make it so acknowledgments are sent only if the output succeeded (e.g. message gets inserted into elasticsearch)?

My end goal is avoiding message loss if the logstash workers crash while processing messages.

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:** [October 6, 2015, 5:49pm UTC](https://discuss.elastic.co/t/rabbitmq-ack-question/31715/2 "2015-10-06T17:49:17Z")

</div>

No, this is currently not possible. However, Logstash's internal buffers are quite small (20 events, or maybe 40) so that's the greatest amount of events you'll ever lose.

---

<div class="post-metadata">

**Author:** ![warkolm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/warkolm/32/39224_2.png) [@warkolm](https://discuss.elastic.co/u/warkolm)\
**Post date:** [October 6, 2015, 7:27pm UTC](https://discuss.elastic.co/t/rabbitmq-ack-question/31715/3 "2015-10-06T19:27:32Z")

</div>

20 input and 20 output.

---

<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:27am UTC](https://discuss.elastic.co/t/rabbitmq-ack-question/31715/4 "2017-07-06T05:27:16Z")

</div>


