# Logstash PQ in conjuction with DLQ

**URL:** <https://discuss.elastic.co/t/logstash-pq-in-conjuction-with-dlq/228086>\
**Category:** Logstash\
**Created:** [April 15, 2020, 10:24am UTC](https://discuss.elastic.co/t/logstash-pq-in-conjuction-with-dlq/228086 "2020-04-15T10:24:48Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Kalilou\_Diaby](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/kalilou_diaby/32/45028_2.png) [@Kalilou\_Diaby](https://discuss.elastic.co/u/Kalilou_Diaby)\
**Post date:** [April 15, 2020, 10:24am UTC](https://discuss.elastic.co/t/logstash-pq-in-conjuction-with-dlq/228086/1 "2020-04-15T10:24:49Z")

</div>

Hello,

Hope everyone is safe during this covid19 crisis.

I have a logstash related question, today we are using Logstash Persistent Queue which seems to me enough to guarantee once an at-least-once delivery. Is there any best practice around using Persistent Queue in conjunction with Dead Letter Queue or is DQL even needed when using PQ ?

/Kalilou

---

<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:** [April 15, 2020, 2:40pm UTC](https://discuss.elastic.co/t/logstash-pq-in-conjuction-with-dlq/228086/2 "2020-04-15T14:40:54Z")

</div>

PQ and DLQ are unrelated. The persistent queue saves data across logstash restarts. The dead letter queue saves malformated data that elasticsearch cannot index.

---

<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 13, 2020, 2:41pm UTC](https://discuss.elastic.co/t/logstash-pq-in-conjuction-with-dlq/228086/3 "2020-05-13T14:41:01Z")

</div>

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