# Where do I assign Logstash a port?

**URL:** <https://discuss.elastic.co/t/where-do-i-assign-logstash-a-port/53001>\
**Category:** Logstash\
**Created:** [June 16, 2016, 1:31pm UTC](https://discuss.elastic.co/t/where-do-i-assign-logstash-a-port/53001 "2016-06-16T13:31:03Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![brandonmcgrath1](https://avatars.discourse-cdn.com/v4/letter/b/ebca7d/32.png) [@brandonmcgrath1](https://discuss.elastic.co/u/brandonmcgrath1)\
**Post date:** [June 16, 2016, 1:31pm UTC](https://discuss.elastic.co/t/where-do-i-assign-logstash-a-port/53001/1 "2016-06-16T13:31:03Z")

</div>

As the title suggests, where is it that you can assign logstash a port? I've noticed that in filebeat, winlogbeat and so on there is an output section with logstash default to 5044, but is that the only place that offers a specific port for logstash to operate?

---

<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:** [June 17, 2016, 5:41am UTC](https://discuss.elastic.co/t/where-do-i-assign-logstash-a-port/53001/2 "2016-06-17T05:41:42Z")

</div>

I'm not sure what you're asking. Many Logstash input plugins can listen to events on TCP and/or UDP ports. Which port to listen to is configured per plugin. Using port 5044 for the beats input seems to be some kind of convention but you can use any free 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:** [July 6, 2017, 4:52am UTC](https://discuss.elastic.co/t/where-do-i-assign-logstash-a-port/53001/3 "2017-07-06T04:52:23Z")

</div>


