# How to understand logstash pipeline-to-pipeline patterns?

**URL:** <https://discuss.elastic.co/t/how-to-understand-logstash-pipeline-to-pipeline-patterns/301044>\
**Category:** Logstash\
**Created:** [March 30, 2022, 7:38am UTC](https://discuss.elastic.co/t/how-to-understand-logstash-pipeline-to-pipeline-patterns/301044 "2022-03-30T07:38:50Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![wajika](https://avatars.discourse-cdn.com/v4/letter/w/977dab/32.png) [@wajika](https://discuss.elastic.co/u/wajika)\
**Post date:** [March 30, 2022, 7:38am UTC](https://discuss.elastic.co/t/how-to-understand-logstash-pipeline-to-pipeline-patterns/301044/1 "2022-03-30T07:38:50Z")

</div>

Currently I use logstash to operate pipeline.yml, the contents are as follows, according to my understanding, a line of pipeline.id should be a thread, it should be independent, but recently I found that there is a problem with one of the pipeline.id, such as its output endpoint is offline, then the result is that the entire pipeline.yml will not work properly.

```auto
- pipeline.id: abp_auditlogs
  path.config: "/etc/logstash/conf.d/abp_auditlogs.conf"
- pipeline.id: lonsid_k8s_dev
  path.config: "/etc/logstash/conf.d/lonsid_k8s_dev.conf"
- pipeline.id: lonsid_k8s_prd
  path.config: "/etc/logstash/conf.d/lonsid_k8s_prd.conf"
- pipeline.id: ack_k8s_dev
  path.config: "/etc/logstash/conf.d/ack_k8s_dev.conf"
- pipeline.id: ack_k8s_prd
  path.config: "/etc/logstash/conf.d/ack_k8s_prd.conf"
- pipeline.id: iiot
  path.config: "/etc/logstash/conf.d/iiot.conf"
- pipeline.id: scheduler
  path.config: "/etc/logstash/conf.d/abp_schedulerlogs.conf"
- pipeline.id: mall_log
  path.config: "/etc/logstash/conf.d/mall_log.conf"
- pipeline.id: iot_masa_pre_prd
  path.config: "/etc/logstash/conf.d/iot_masa_pre_prd.conf"

```

According to forum searches, I found that logstash has multiple [architectural patterns](https://www.elastic.co/guide/en/logstash/current/pipeline-to-pipeline.html#architectural-patterns)

- [The distributor pattern](https://www.elastic.co/guide/en/logstash/current/pipeline-to-pipeline.html#distributor-pattern)
- [The output isolator pattern](https://www.elastic.co/guide/en/logstash/current/pipeline-to-pipeline.html#output-isolator-pattern)
- [The forked path pattern](https://www.elastic.co/guide/en/logstash/current/pipeline-to-pipeline.html#forked-path-pattern)
- [The collector pattern](https://www.elastic.co/guide/en/logstash/current/pipeline-to-pipeline.html#collector-pattern)

The documentation uses config.string, but I don't see any difference from my use of path.config, why is it considered isolated mode? Other patterns are similar, I don't understand.

```auto
# config/pipelines.yml
- pipeline.id: intake
  config.string: |
    input { beats { port => 5044 } }
    output { pipeline { send_to => [es, http] } }
- pipeline.id: buffered-es
  queue.type: persisted
  config.string: |
    input { pipeline { address => es } }
    output { elasticsearch { } }
- pipeline.id: buffered-http
  queue.type: persisted
  config.string: |
    input { pipeline { address => http } }
    output { http { } }

```

My purpose is to want logstash to keep running stably.

```auto
You can use the output isolator pattern to prevent Logstash from becoming blocked if one of multiple outputs experiences a temporary failure.

```

---

<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:** [March 30, 2022, 6:20pm UTC](https://discuss.elastic.co/t/how-to-understand-logstash-pipeline-to-pipeline-patterns/301044/2 "2022-03-30T18:20:19Z")

</div>

> [@wajika](#):
>
> I found that there is a problem with one of the pipeline.id, such as its output endpoint is offline, then the result is that the entire pipeline.yml will not work properly

That is expected. Read through [this thread](https://discuss.elastic.co/t/logstash-multiple-pipelines-failure-with-persistent-queues/296520/2).

---

<div class="post-metadata">

**Author:** ![wajika](https://avatars.discourse-cdn.com/v4/letter/w/977dab/32.png) [@wajika](https://discuss.elastic.co/u/wajika)\
**Post date:** [March 31, 2022, 12:50am UTC](https://discuss.elastic.co/t/how-to-understand-logstash-pipeline-to-pipeline-patterns/301044/3 "2022-03-31T00:50:15Z")

</div>

Thank you for your reply, actually the "forum searches result" I mentioned above, what I saw is this thread.

I still don't understand how to configure isolation mode.

---

<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:** [April 28, 2022, 12:51am UTC](https://discuss.elastic.co/t/how-to-understand-logstash-pipeline-to-pipeline-patterns/301044/4 "2022-04-28T00:51:11Z")

</div>

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