# Dead letter queue duplicating the stream

**URL:** <https://discuss.elastic.co/t/dead-letter-queue-duplicating-the-stream/114821>\
**Category:** Logstash\
**Created:** [January 10, 2018, 9:50am UTC](https://discuss.elastic.co/t/dead-letter-queue-duplicating-the-stream/114821 "2018-01-10T09:50:42Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![NGC\_2359](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/ngc_2359/32/26552_2.png) [@NGC\_2359](https://discuss.elastic.co/u/NGC_2359)\
**Post date:** [January 10, 2018, 9:50am UTC](https://discuss.elastic.co/t/dead-letter-queue-duplicating-the-stream/114821/1 "2018-01-10T09:50:42Z")

</div>

Hi Elastic folks,

I’m using the ElasticStack 6.1.1 and have been trying to configure the dead letter queue feature with the following:

**pipelines.yml:**

```
- pipeline.id: main
  path.config: ...
- pipeline.id: dead
  path.config: ...

```

I’ve enabled DLQ in **logstash.yml** and here is **dead\_letter\_queue.conf** :

```
input {
    dead_letter_queue {
        path => ...
        commit_offsets => true
        pipeline_id => "main"
    }
}

output {
    hosts => ...
    index => "dead-logs"
}

```

The main pipeline writes its output to the "_active-logs_" ES index.

But what happens is every event that is written successfully to "_active-logs_" is also rewritten exactly the same in "_dead-logs_"!

Did I misunderstood the use of DLQ?

Thanks.

---

<div class="post-metadata">

**Author:** ![NGC\_2359](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/ngc_2359/32/26552_2.png) [@NGC\_2359](https://discuss.elastic.co/u/NGC_2359)\
**Post date:** [January 26, 2018, 5:26pm UTC](https://discuss.elastic.co/t/dead-letter-queue-duplicating-the-stream/114821/2 "2018-01-26T17:26:30Z")

</div>

Any idea on this ?

---

<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 23, 2018, 5:26pm UTC](https://discuss.elastic.co/t/dead-letter-queue-duplicating-the-stream/114821/3 "2018-02-23T17:26:44Z")

</div>

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