# Logstash multiple tcp inputs with different ports

**URL:** <https://discuss.elastic.co/t/logstash-multiple-tcp-inputs-with-different-ports/61911>\
**Category:** Logstash\
**Created:** [September 30, 2016, 10:05am UTC](https://discuss.elastic.co/t/logstash-multiple-tcp-inputs-with-different-ports/61911 "2016-09-30T10:05:43Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![ANU\_SARA\_VARGHESE](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/anu_sara_varghese/32/51487_2.png) [@ANU\_SARA\_VARGHESE](https://discuss.elastic.co/u/ANU_SARA_VARGHESE)\
**Post date:** [September 30, 2016, 10:05am UTC](https://discuss.elastic.co/t/logstash-multiple-tcp-inputs-with-different-ports/61911/1 "2016-09-30T10:05:43Z")

</div>

Hi,

Is it possible to use 2 tcp ports in the input of the logstash for different types?

input {  
tcp{  
port =\> 5000  
type =\> "syslog"  
}  
}  
tcp{he  
port =\> 6000  
type =\> "eventlogs"  
}  
}

I tried on the above configuration but was not able to recieve logs( I am receiving logs from the same host).

---

<div class="post-metadata">

**Author:** ![magnusbaeck](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/magnusbaeck/32/44943_2.png) [@magnusbaeck](https://discuss.elastic.co/u/magnusbaeck)\
**Post date:** [September 30, 2016, 10:39am UTC](https://discuss.elastic.co/t/logstash-multiple-tcp-inputs-with-different-ports/61911/2 "2016-09-30T10:39:12Z")

</div>

Yes, this should work fine.

---

<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:36am UTC](https://discuss.elastic.co/t/logstash-multiple-tcp-inputs-with-different-ports/61911/3 "2017-07-06T04:36:18Z")

</div>


