# Logstash http input plugin acknowledge, when message is persisted

**URL:** <https://discuss.elastic.co/t/logstash-http-input-plugin-acknowledge-when-message-is-persisted/355167>\
**Category:** Logstash\
**Created:** [March 11, 2024, 2:32pm UTC](https://discuss.elastic.co/t/logstash-http-input-plugin-acknowledge-when-message-is-persisted/355167 "2024-03-11T14:32:41Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Casper\_Thrane](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/casper_thrane/32/49777_2.png) [@Casper\_Thrane](https://discuss.elastic.co/u/Casper_Thrane)\
**Post date:** [March 11, 2024, 2:32pm UTC](https://discuss.elastic.co/t/logstash-http-input-plugin-acknowledge-when-message-is-persisted/355167/1 "2024-03-11T14:32:41Z")

</div>

Hi

Is it correct understood, to make logstash return 200 after message is persisted, a persistent queue is needed. The input plugin will return it's status code, before the output pipeline is done.

Br Casper

---

<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:** [March 11, 2024, 3:24pm UTC](https://discuss.elastic.co/t/logstash-http-input-plugin-acknowledge-when-message-is-persisted/355167/2 "2024-03-11T15:24:05Z")

</div>

No, the http plugin response is not affected by anything that happens to the event in the pipeline or outputs.

---

<div class="post-metadata">

**Author:** ![Casper\_Thrane](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/casper_thrane/32/49777_2.png) [@Casper\_Thrane](https://discuss.elastic.co/u/Casper_Thrane)\
**Post date:** [March 11, 2024, 9:10pm UTC](https://discuss.elastic.co/t/logstash-http-input-plugin-acknowledge-when-message-is-persisted/355167/3 "2024-03-11T21:10:03Z")

</div>

But if persistent queue is used, would logstash then secure the data in the persistent queue, before acknowledge the http request?

---

<div class="post-metadata">

**Author:** ![leandrojmp](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/leandrojmp/32/107231_2.png) [@leandrojmp](https://discuss.elastic.co/u/leandrojmp)\
**Post date:** [March 11, 2024, 9:50pm UTC](https://discuss.elastic.co/t/logstash-http-input-plugin-acknowledge-when-message-is-persisted/355167/4 "2024-03-11T21:50:18Z")

</div>

> [@Casper\_Thrane](#):
>
> But if persistent queue is used, would logstash then secure the data in the persistent queue, before acknowledge the http request?

If I'm not wrong Logstash will answer a 200 to the source when it receives the event and puts it on the queue, be it a memory queue or a persistent.

Basically you have this

Source - \> HTTP Input -\> Queue (memory or persistent) -\> filters -\> output.

When the event enters the queue, then logstash will have acknowledge the message, what happens after that does not affect the input.

---

<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:** [April 8, 2024, 9:50pm UTC](https://discuss.elastic.co/t/logstash-http-input-plugin-acknowledge-when-message-is-persisted/355167/5 "2024-04-08T21:50:43Z")

</div>

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