# Logstash deadletterqueue

**URL:** <https://discuss.elastic.co/t/logstash-deadletterqueue/166195>\
**Category:** Logstash\
**Created:** [January 29, 2019, 2:58pm UTC](https://discuss.elastic.co/t/logstash-deadletterqueue/166195 "2019-01-29T14:58:12Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![fadihaddad](https://avatars.discourse-cdn.com/v4/letter/f/4bbf92/32.png) [@fadihaddad](https://discuss.elastic.co/u/fadihaddad)\
**Post date:** [January 29, 2019, 2:58pm UTC](https://discuss.elastic.co/t/logstash-deadletterqueue/166195/1 "2019-01-29T14:58:12Z")

</div>

i enabled deadletterqueue in logtsash.yml and created the pipeline deadletterqueue in pipelines.yml wih id dlq  
so this os my config  
input {  
dead\_letter\_queue {  
path =\> "/var/lib/logstash/dead\_letter\_queue"  
commit\_offsets =\> true  
pipeline\_id =\> "dlq"  
}  
}

output {  
elasticsearch {  
hosts =\> "hostip"  
index =\> "deadletterque"  
document\_type =\> "data"

}  
stdout {  
codec =\> rubydebug { metadata =\> true }  
}  
}  
the pipe is running but stuck in flushing loop ts seems its not finding the file path to index i used the rpm installation and i accessed the deadletter queue in /var/lib/logstash and fund the piplines and logs inside them what can i do to fix this

---

<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:** [January 29, 2019, 3:24pm UTC](https://discuss.elastic.co/t/logstash-deadletterqueue/166195/2 "2019-01-29T15:24:25Z")

</div>

> [@fadihaddad](#):
>
> input {  
> dead\_letter\_queue {  
> path =\> "/var/lib/logstash/dead\_letter\_queue"  
> commit\_offsets =\> true  
> pipeline\_id =\> "dlq"  
> }  
> }

That says you are trying to consume the failed messages of an elasticsearch output in a pipline called dlq. Is that really what you want? pipeline\_id refers to the id of the pipeline that is adding messages to the dlq, it is not a way to name the dlq consuming pipeline.

What is the name of the pipeline that is failing to write messages to an elasticsearch output, that is the name you should be using here.

---

<div class="post-metadata">

**Author:** ![fadihaddad](https://avatars.discourse-cdn.com/v4/letter/f/4bbf92/32.png) [@fadihaddad](https://discuss.elastic.co/u/fadihaddad)\
**Post date:** [January 30, 2019, 7:01am UTC](https://discuss.elastic.co/t/logstash-deadletterqueue/166195/3 "2019-01-30T07:01:58Z")

</div>

maybe I want to use it on multiple pipelines?

---

<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:** [January 30, 2019, 1:13pm UTC](https://discuss.elastic.co/t/logstash-deadletterqueue/166195/4 "2019-01-30T13:13:21Z")

</div>

Then I believe you would need multiple consumer pipelines, since pipeline\_id is a string, not an array.

---

<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:** [February 27, 2019, 1:13pm UTC](https://discuss.elastic.co/t/logstash-deadletterqueue/166195/5 "2019-02-27T13:13:24Z")

</div>

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