# Dead letter queue isn't cleaned up

**URL:** <https://discuss.elastic.co/t/dead-letter-queue-isnt-cleaned-up/139653>\
**Category:** Logstash\
**Created:** [July 12, 2018, 12:48am UTC](https://discuss.elastic.co/t/dead-letter-queue-isnt-cleaned-up/139653 "2018-07-12T00:48:33Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![jbeck](https://avatars.discourse-cdn.com/v4/letter/j/c5a1d2/32.png) [@jbeck](https://discuss.elastic.co/u/jbeck)\
**Post date:** [July 12, 2018, 12:48am UTC](https://discuss.elastic.co/t/dead-letter-queue-isnt-cleaned-up/139653/1 "2018-07-12T00:48:33Z")

</div>

We are using the dead letter queue with the Elasticsearch output plugin, and the dead letter queue input to reprocess events. It seems to work quite well, except that the old entries in the dead letter queue are never removed, and eventually the dead letter queue fills up, and logstash refuses to write new entries.

Is there a way to clean up old entries? Without that the dead letter queue is practically useless.

---

<div class="post-metadata">

**Author:** ![thai](https://avatars.discourse-cdn.com/v4/letter/t/ed8c4c/32.png) [@thai](https://discuss.elastic.co/u/thai)\
**Post date:** [July 16, 2018, 12:07am UTC](https://discuss.elastic.co/t/dead-letter-queue-isnt-cleaned-up/139653/2 "2018-07-16T00:07:34Z")

</div>

@RobBavey, is your answer in [Questions about dead letter queue](https://discuss.elastic.co/t/questions-about-dead-letter-queue/110798/2) still valid?

---

<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:** [August 13, 2018, 12:07am UTC](https://discuss.elastic.co/t/dead-letter-queue-isnt-cleaned-up/139653/3 "2018-08-13T00:07:35Z")

</div>

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