# Logstash with multiple input plugins

**URL:** <https://discuss.elastic.co/t/logstash-with-multiple-input-plugins/51173>\
**Category:** Logstash\
**Created:** [May 27, 2016, 3:25pm UTC](https://discuss.elastic.co/t/logstash-with-multiple-input-plugins/51173 "2016-05-27T15:25:39Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![naga1](https://avatars.discourse-cdn.com/v4/letter/n/919ad9/32.png) [@naga1](https://discuss.elastic.co/u/naga1)\
**Post date:** [May 27, 2016, 3:25pm UTC](https://discuss.elastic.co/t/logstash-with-multiple-input-plugins/51173/1 "2016-05-27T15:25:39Z")

</div>

Hi,

I am trying to have multiple input plugins one is tcp and other is filebeat on the same logstash instance, but I see logs are only coming from the tcp port not from beats servers, logs . Below is the input configuration we tried, logstash-version-2.3.2 on linux aws instance. Is it because of port conflict??

////  
input {  
tcp {  
port =\> 5044  
codec =\> fluent  
}  
beats {  
port =\> 5044  
}  
}  
////

Below is the error its getting,

///  
{:timestamp=\>"2016-05-27T15:12:50.123000+0000", :message=\>"Pipeline aborted due to err  
or", :exception=\>#\<Errno::EADDRINUSE: Address already in use - bind - Address already  
in use\>,  
///

---

<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:** [May 27, 2016, 3:49pm UTC](https://discuss.elastic.co/t/logstash-with-multiple-input-plugins/51173/2 "2016-05-27T15:49:24Z")

</div>

Yes, you need to have the different inputs listening to different ports.

---

<div class="post-metadata">

**Author:** ![naga1](https://avatars.discourse-cdn.com/v4/letter/n/919ad9/32.png) [@naga1](https://discuss.elastic.co/u/naga1)\
**Post date:** [May 27, 2016, 5:47pm UTC](https://discuss.elastic.co/t/logstash-with-multiple-input-plugins/51173/3 "2016-05-27T17:47:52Z")

</div>

Thanks for the response @Christian_Dahlqvist

---

<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 6, 2017, 4:55am UTC](https://discuss.elastic.co/t/logstash-with-multiple-input-plugins/51173/4 "2017-07-06T04:55:53Z")

</div>


