# Send to different Logstash pipelines based on input

**URL:** <https://discuss.elastic.co/t/send-to-different-logstash-pipelines-based-on-input/277959>\
**Category:** Logstash\
**Created:** [July 6, 2021, 12:31pm UTC](https://discuss.elastic.co/t/send-to-different-logstash-pipelines-based-on-input/277959 "2021-07-06T12:31:34Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![RAM\_NATHAN](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/ram_nathan/32/50393_2.png) [@RAM\_NATHAN](https://discuss.elastic.co/u/RAM_NATHAN)\
**Post date:** [July 6, 2021, 12:31pm UTC](https://discuss.elastic.co/t/send-to-different-logstash-pipelines-based-on-input/277959/1 "2021-07-06T12:31:34Z")

</div>

Hi

i have two logstash pipelines in Pipelines.yml. I need to redirect events to appropriate pipelines based on input. If input is "abc", send to pipeline "pipeline 1", else send to "pipeline2". I cant handle this at sources. All sources will send to same logstash port 1468. How to achive this? I read about filebeat. But it seems not possible in filebeat.

Regards  
Ram

---

<div class="post-metadata">

**Author:** ![aaron-nimocks](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/aaron-nimocks/32/73965_2.png) [@aaron-nimocks](https://discuss.elastic.co/u/aaron-nimocks)\
**Post date:** [July 6, 2021, 1:08pm UTC](https://discuss.elastic.co/t/send-to-different-logstash-pipelines-based-on-input/277959/2 "2021-07-06T13:08:57Z")

</div>

Check out the [distributor pattern](https://www.elastic.co/guide/en/logstash/current/pipeline-to-pipeline.html#distributor-pattern). I think that will work for you.

---

<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:** [August 3, 2021, 1:09pm UTC](https://discuss.elastic.co/t/send-to-different-logstash-pipelines-based-on-input/277959/3 "2021-08-03T13:09:09Z")

</div>

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