# Logstash port dependency

**URL:** https://discuss.elastic.co/t/logstash-port-dependency/128551
**Category:** Logstash
**Created:** [April 18, 2018, 2:22pm UTC](https://discuss.elastic.co/t/logstash-port-dependency/128551 "2018-04-18T14:22:34Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![Jinu\_Prabhakar](https://avatars.discourse-cdn.com/v4/letter/j/bb73d2/32.png) [@Jinu\_Prabhakar](https://discuss.elastic.co/u/Jinu_Prabhakar)
#### Post date: [April 18, 2018, 2:22pm UTC](https://discuss.elastic.co/t/logstash-port-dependency/128551/1 "2018-04-18T14:22:35Z")

</div>

I am trying to use tcp as well as beats in my logstash.conf by enabling the same port,is it make any problem for filebeat to ship the logs if i didnt use port as 5044.

- is there any concept in logstash like default port or its user defind  
Here my .conf file

input {  
tcp {  
port =\> 5001  
}

beats {  
'port' =\> '5001'  
}

---

<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: [April 19, 2018, 6:22am UTC](https://discuss.elastic.co/t/logstash-port-dependency/128551/2 "2018-04-19T06:22:47Z")

</div>

Logstash plugins that listen to a network port don't care which port they listen on and most if not all don't have a default port. Just pick any unused port.

---

<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: [May 17, 2018, 6:22am UTC](https://discuss.elastic.co/t/logstash-port-dependency/128551/3 "2018-05-17T06:22:48Z")

</div>

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