# Logstash Multiple Inputs on same port query

**URL:** <https://discuss.elastic.co/t/logstash-multiple-inputs-on-same-port-query/186872>\
**Category:** Logstash\
**Created:** [June 21, 2019, 11:43am UTC](https://discuss.elastic.co/t/logstash-multiple-inputs-on-same-port-query/186872 "2019-06-21T11:43:21Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![markbgale](https://avatars.discourse-cdn.com/v4/letter/m/71e660/32.png) [@markbgale](https://discuss.elastic.co/u/markbgale)\
**Post date:** [June 21, 2019, 11:43am UTC](https://discuss.elastic.co/t/logstash-multiple-inputs-on-same-port-query/186872/1 "2019-06-21T11:43:21Z")

</div>

I have a novice question....

I currently have 2 pipelines for data coming into Logstash. One of which is beats, and the other is custom http data. Both of which output to seperate Elastic indexes.

I've got this working fine using two pipelines with seperate inbound ports, one with beats input plugin and one with http input plugin, but from a networking perspective it would be tidier if I could just send to logstash on one port.

Is it possible to do this with one pipeline just using one inbound port? I'd need to identify whether the source data required the beats or http plugin and handle it accordingly. If it is possible can you point me to some working examples where the input has been split out?

Thanks

---

<div class="post-metadata">

**Author:** ![Christian\_Dahlqvist](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/christian_dahlqvist/32/4617_2.png) [@Christian\_Dahlqvist](https://discuss.elastic.co/u/Christian_Dahlqvist)\
**Post date:** [June 23, 2019, 9:11pm UTC](https://discuss.elastic.co/t/logstash-multiple-inputs-on-same-port-query/186872/2 "2019-06-23T21:11:19Z")

</div>

No, input plugins can not share ports.

---

<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:** [June 23, 2019, 10:25pm UTC](https://discuss.elastic.co/t/logstash-multiple-inputs-on-same-port-query/186872/3 "2019-06-23T22:25:12Z")

</div>

Take a look at the [distributor](https://www.elastic.co/guide/en/logstash/current/pipeline-to-pipeline.html#distributor-pattern) pattern in the pipeline-to-pipeline documentation.

---

<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:** [July 21, 2019, 10:37pm UTC](https://discuss.elastic.co/t/logstash-multiple-inputs-on-same-port-query/186872/4 "2019-07-21T22:37:00Z")

</div>

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