# How to monitor the number of events in Dead letter queue

**URL:** <https://discuss.elastic.co/t/how-to-monitor-the-number-of-events-in-dead-letter-queue/271410>\
**Category:** Logstash\
**Created:** [April 27, 2021, 4:26pm UTC](https://discuss.elastic.co/t/how-to-monitor-the-number-of-events-in-dead-letter-queue/271410 "2021-04-27T16:26:25Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Animesh\_Agarwal](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/animesh_agarwal/32/80330_2.png) [@Animesh\_Agarwal](https://discuss.elastic.co/u/Animesh_Agarwal)\
**Post date:** [April 27, 2021, 4:26pm UTC](https://discuss.elastic.co/t/how-to-monitor-the-number-of-events-in-dead-letter-queue/271410/1 "2021-04-27T16:26:25Z")

</div>

Hi Team,

We have configured Dead Letter Queue(DLQ) in our Logstash layer.  
We want to be alerted when the number of events in DLQ increase beyond a certain limit.

I tried going through the Logstash Monitoring docs, but didn't find. way a metric for this.

Please help in this regard.

---

<div class="post-metadata">

**Author:** ![Wolfram\_Haussig](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/wolfram_haussig/32/70528_2.png) [@Wolfram\_Haussig](https://discuss.elastic.co/u/Wolfram_Haussig)\
**Post date:** [April 27, 2021, 5:11pm UTC](https://discuss.elastic.co/t/how-to-monitor-the-number-of-events-in-dead-letter-queue/271410/2 "2021-04-27T17:11:49Z")

</div>

Hi,

I don't know if this is still up to date but would something like this work for you? [Monitoring dead letter queue (DLQ)](https://discuss.elastic.co/t/monitoring-dead-letter-queue-dlq/166715)

There is a LogStash REST API which exposes LogStash metrics and according to this post there is a field describing the dlq size in bytes.

Best regards  
Wolfram

---

<div class="post-metadata">

**Author:** ![Animesh\_Agarwal](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/animesh_agarwal/32/80330_2.png) [@Animesh\_Agarwal](https://discuss.elastic.co/u/Animesh_Agarwal)\
**Post date:** [April 28, 2021, 6:03pm UTC](https://discuss.elastic.co/t/how-to-monitor-the-number-of-events-in-dead-letter-queue/271410/3 "2021-04-28T18:03:45Z")

</div>

Hi Wolfram,

Thanks for the reply. The size of the dead letter queue can be found out using the REST API.  
It would have been better if the metric could have been a part of the .monitoring-logstash indices.

---

<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:** [May 26, 2021, 6:04pm UTC](https://discuss.elastic.co/t/how-to-monitor-the-number-of-events-in-dead-letter-queue/271410/4 "2021-05-26T18:04:16Z")

</div>

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