# Dead\_letter\_queueにおける複数pipelineの扱い方

**URL:** <https://discuss.elastic.co/t/dead-letter-queue-pipeline/280287>\
**Category:** 日本語による質問・議論はこちら\
**Created:** [August 3, 2021, 8:26am UTC](https://discuss.elastic.co/t/dead-letter-queue-pipeline/280287 "2021-08-03T08:26:30Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![t-nakata](https://avatars.discourse-cdn.com/v4/letter/t/8491ac/32.png) [@t-nakata](https://discuss.elastic.co/u/t-nakata)\
**Post date:** [August 3, 2021, 8:26am UTC](https://discuss.elastic.co/t/dead-letter-queue-pipeline/280287/1 "2021-08-03T08:26:30Z")

</div>

logstashのdead\_letter\_queueについてご教示ください。

logstashのdead\_letter\_queue inputプラグインにて、以下のような設定をしております。

```auto
input {
  dead_letter_queue {
    commit_offsets => true
    path => "/var/lib/logstash/dead_letter_queue"
    pipeline_id => "test"
  }
}

```

この設定だとtest pipelineしかdead\_letter\_queueを使用できませんが、複数pipelineにてdead\_letter\_queueを使用したいです。  
以下のように記載してみたのですがlogstash起動時にエラーになってしましました。

`pipeline_id => ["test","test2"]`

複数のパイプラインにてdead\_letter\_queueを使用したい場合に、シンプルにconfに定義する方法をご教示頂けないでしょうか？  
dead\_letter\_queue用のconfを作成し、全てのパイプラインがそれを参照するような形式なのか、各パイプラインにdead\_letter\_queueの定義を入れるべきなのか、方向性が分からずにおります。うまい方法をご存じであればご教示頂きたいです。

---

<div class="post-metadata">

**Author:** ![YuWatanabe](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/yuwatanabe/32/13259_2.png) [@YuWatanabe](https://discuss.elastic.co/u/YuWatanabe)\
**Post date:** [August 12, 2021, 1:01am UTC](https://discuss.elastic.co/t/dead-letter-queue-pipeline/280287/2 "2021-08-12T01:01:23Z")

</div>

考え方はいくつかありそうですが、_Multi Pipeline_ を使用するのはいかがでしょうか？

```auto
input ----> output 1
      ----> output 2

```

> **[Pipeline-to-pipeline communication | Logstash Reference \[8.11\] | Elastic](https://www.elastic.co/guide/en/logstash/current/pipeline-to-pipeline.html#pipeline-to-pipeline)**

単一の input から複数のパイプラインへ転送する際のsyntax はこのようになります。

> **[Pipeline-to-pipeline communication | Logstash Reference \[8.11\] | Elastic](https://www.elastic.co/guide/en/logstash/current/pipeline-to-pipeline.html#output-isolator-pattern)**

> output { pipeline { send\_to =\> [es, http] } }

---

<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:** [September 9, 2021, 1:01am UTC](https://discuss.elastic.co/t/dead-letter-queue-pipeline/280287/3 "2021-09-09T01:01:33Z")

</div>

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