# Pipeline to Pipelines configuration

**URL:** <https://discuss.elastic.co/t/pipeline-to-pipelines-configuration/255343>\
**Category:** Logstash\
**Created:** [November 13, 2020, 1:08pm UTC](https://discuss.elastic.co/t/pipeline-to-pipelines-configuration/255343 "2020-11-13T13:08:24Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Alexandros888](https://avatars.discourse-cdn.com/v4/letter/a/3ec8ea/32.png) [@Alexandros888](https://discuss.elastic.co/u/Alexandros888)\
**Post date:** [November 13, 2020, 1:08pm UTC](https://discuss.elastic.co/t/pipeline-to-pipelines-configuration/255343/1 "2020-11-13T13:08:24Z")

</div>

Hello,

I want to use the pipeline to pipeline communication in pipeline creation in kibana, But i want the same input to send to 2 different pipelines.

My code is the following but doesn't seem to work.

```
input {
    beats {
        port => 5044
    }
}

output {
    if "filebeat-lasernet" in [fields][pipeline] {
        pipeline { send_to => "filebeat-lasernet" },
        pipeline { send_to => "filebeat-ml" }
    }
    else {
        pipeline { send_to => fallback }
    }
}

```

Any help on that one?

Best regards,  
Alexandros

---

<div class="post-metadata">

**Author:** ![rugenl](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/rugenl/32/12887_2.png) [@rugenl](https://discuss.elastic.co/u/rugenl)\
**Post date:** [November 14, 2020, 1:24am UTC](https://discuss.elastic.co/t/pipeline-to-pipelines-configuration/255343/2 "2020-11-14T01:24:43Z")

</div>

Does this get errors? Output to neither or just one pipeline?

[This doc](https://www.elastic.co/guide/en/logstash/current/pipeline-to-pipeline.html#forked-path-pattern) has a different syntax:

```
output { pipeline { send_to => ["internal-es", "partner-s3"] } }
```

---

<div class="post-metadata">

**Author:** ![Alexandros888](https://avatars.discourse-cdn.com/v4/letter/a/3ec8ea/32.png) [@Alexandros888](https://discuss.elastic.co/u/Alexandros888)\
**Post date:** [November 18, 2020, 9:57am UTC](https://discuss.elastic.co/t/pipeline-to-pipelines-configuration/255343/3 "2020-11-18T09:57:30Z")

</div>

Hello Len,

Thank you for your reply yes it works.

The issue was also that i had to declare the filebeat-ml pipeline on both yaml files of logstash instances that i have, because i have a 2 nodes testing cluster.

Best regards,  
Alexandros

---

<div class="post-metadata">

**Author:** ![rugenl](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/rugenl/32/12887_2.png) [@rugenl](https://discuss.elastic.co/u/rugenl)\
**Post date:** [November 18, 2020, 8:11pm UTC](https://discuss.elastic.co/t/pipeline-to-pipelines-configuration/255343/4 "2020-11-18T20:11:11Z")

</div>

Logstash multi-pipelines in a multi-server environment is an example of why we need devops management! I use Ansible to manage all of our BELK stack config so I know the same syntax gets deployed to all servers for a specific roll and that the changes are tested, rolled thru QA and then to production.

---

<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:** [December 16, 2020, 8:11pm UTC](https://discuss.elastic.co/t/pipeline-to-pipelines-configuration/255343/5 "2020-12-16T20:11:23Z")

</div>

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