# Multiple beats input ports allowed on Logstash configuration?

**URL:** <https://discuss.elastic.co/t/multiple-beats-input-ports-allowed-on-logstash-configuration/271095>\
**Category:** Logstash\
**Created:** [April 23, 2021, 1:40pm UTC](https://discuss.elastic.co/t/multiple-beats-input-ports-allowed-on-logstash-configuration/271095 "2021-04-23T13:40:18Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![omkarg81](https://avatars.discourse-cdn.com/v4/letter/o/e495f1/32.png) [@omkarg81](https://discuss.elastic.co/u/omkarg81)\
**Post date:** [April 23, 2021, 1:40pm UTC](https://discuss.elastic.co/t/multiple-beats-input-ports-allowed-on-logstash-configuration/271095/1 "2021-04-23T13:40:18Z")

</div>

I'm trying to achieve getting Logstash to listen to 2 different beats ports - one for filebeat and one for winlogbeat, by setting the conf file to be -

```
input {
  beats {
      id => "winlogbeat_plugin"
      port => 5044
  }
  beats {
      id => "filebeat_plugin"
      port => 5045
  }
}

```

But it seems, when the container is created out of this Logstash image, it only shows 5044 being listened to, in the netstat -an listing

Can Logstash only listen to 1 beats input at a time? Is there a downside to let both filebeat and winlogbeat send events to SingleIP:SinglePort for Logstash in their own configs?

---

<div class="post-metadata">

**Author:** ![A\_B](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/a_b/32/17104_2.png) [@A\_B](https://discuss.elastic.co/u/A_B)\
**Post date:** [April 23, 2021, 2:07pm UTC](https://discuss.elastic.co/t/multiple-beats-input-ports-allowed-on-logstash-configuration/271095/2 "2021-04-23T14:07:28Z")

</div>

Hi @omkarg81 ,

I do not run Logstash in a container so not sure what the problem could be but in a VM you can definitely run several `beats` inputs.

As long as all messages flow through the same Logstash pipeline, I do not think there is any significant difference between a single input or several inputs.

---

<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 21, 2021, 2:08pm UTC](https://discuss.elastic.co/t/multiple-beats-input-ports-allowed-on-logstash-configuration/271095/3 "2021-05-21T14:08:20Z")

</div>

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