# Udp 127.0.0.1:2055: bind: address already in use in 7.6 netflow module

**URL:** https://discuss.elastic.co/t/udp-127-0-0-1-bind-address-already-in-use-in-7-6-netflow-module/228222
**Category:** Beats
**Tags:** filebeat
**Created:** [April 15, 2020, 11:53pm UTC](https://discuss.elastic.co/t/udp-127-0-0-1-bind-address-already-in-use-in-7-6-netflow-module/228222 "2020-04-15T23:53:15Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![Dmitry1](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dmitry1/32/50610_2.png) [@Dmitry1](https://discuss.elastic.co/u/Dmitry1)
#### Post date: [April 15, 2020, 11:53pm UTC](https://discuss.elastic.co/t/udp-127-0-0-1-bind-address-already-in-use-in-7-6-netflow-module/228222/1 "2020-04-15T23:53:15Z")

</div>

Hi,

i've upgraded filebead from 7.5.2 to 7.6.2 and now filebeat constantly complain:

```auto
    2020-04-16T02:38:48.587+0300 INFO crawler/crawler.go:72 Loading Inputs: 2
    2020-04-16T02:38:48.587+0300 INFO input/input.go:114 Starting input of type: netflow; ID: 8714833438451968066
    2020-04-16T02:38:48.587+0300 INFO [netflow] netflow/input.go:153 Starting UDP input
    2020-04-16T02:38:48.588+0300 INFO [udp] udp/server.go:81 Started listening for UDP connection {"address": "0.0.0.0:2055"}
    2020-04-16T02:38:48.590+0300 INFO crawler/crawler.go:106 Loading and starting Inputs completed. Enab2020-04-16T02:38:48.630+0300 INFO [netflow] netflow/input.go:153 Starting UDP input
    2020-04-16T02:38:48.630+0300 ERROR [netflow] netflow/input.go:164 Error running harvester: listen udp 127.0.0.1:2055: bind: address already in use
    led inputs: 1
    2020-04-16T02:38:58.630+0300 INFO [netflow] netflow/input.go:153 Starting UDP input
    2020-04-16T02:38:58.631+0300 ERROR [netflow] netflow/input.go:164 Error running harvester: listen udp 127.0.0.1:2055: bind: address already in use
    2020-04-16T02:39:08.631+0300 INFO [netflow] netflow/input.go:153 Starting UDP input
    2020-04-16T02:39:08.632+0300 ERROR [netflow] netflow/input.go:164 Error running harvester: listen udp 127.0.0.1:2055: bind: address already in use

```

netflow input in felibeat.yml defined as:

filebeat.inputs:

```auto
 - type: netflow
   max_message_size: 10KiB
   host: "0.0.0.0:2055"
   protocols: [v5, v9, ipfix]                                                                                                                              
   expiration_timeout: 30m
   queue_size: 8192
   detect_sequence_reset: true

```

why it complain about 127.0.0.1:2055 ?

There is nobody listen to udp port 2055 before I start filebeat  
Moreover if I rollback to filebeat 7.5.2 - all errors about "bind: address already in us" are disappeared.

---

<div class="post-metadata">

### Author: ![mtojek](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/mtojek/32/63863_2.png) [@mtojek](https://discuss.elastic.co/u/mtojek)
#### Post date: [April 16, 2020, 7:13am UTC](https://discuss.elastic.co/t/udp-127-0-0-1-bind-address-already-in-use-in-7-6-netflow-module/228222/2 "2020-04-16T07:13:41Z")

</div>

Could you please post an extended dump from netstat?

---

<div class="post-metadata">

### Author: ![Dmitry1](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dmitry1/32/50610_2.png) [@Dmitry1](https://discuss.elastic.co/u/Dmitry1)
#### Post date: [April 16, 2020, 9:16am UTC](https://discuss.elastic.co/t/udp-127-0-0-1-bind-address-already-in-use-in-7-6-netflow-module/228222/4 "2020-04-16T09:16:00Z")

</div>

Sorry, I understood what was the matter. But why this happens?  
As the documentation says, the default netflow input in filebeat.yml is defined as follows:  
[https://www.elastic.co/guide/en/beats/filebeat/7.6/filebeat-input-netflow.html](https://www.elastic.co/guide/en/beats/filebeat/7.6/filebeat-input-netflow.html)

```auto
filebeat.inputs:
- type: netflow
  host: "0.0.0.0:2055"

```

but in neflow module confuration file `modules.d/netflow.yml` we see port 2055 too:  
[https://www.elastic.co/guide/en/beats/filebeat/7.6/filebeat-module-netflow.html](https://www.elastic.co/guide/en/beats/filebeat/7.6/filebeat-module-netflow.html)

```auto
- module: netflow
  log:
    enabled: true
    var:
      netflow_host: 0.0.0.0
      netflow_port: 2055

```

In version 7.5 I change port in `modules.d/netflow.yml` from 2055 to 2056 and get rid of bind errors. But why this two ports same by default ? What does each of them do?

---

<div class="post-metadata">

### Author: ![Dmitry1](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dmitry1/32/50610_2.png) [@Dmitry1](https://discuss.elastic.co/u/Dmitry1)
#### Post date: [April 16, 2020, 9:49am UTC](https://discuss.elastic.co/t/udp-127-0-0-1-bind-address-already-in-use-in-7-6-netflow-module/228222/5 "2020-04-16T09:49:36Z")

</div>

my fault, [https://www.elastic.co/guide/en/beats/filebeat/7.6/configuration-filebeat-options.html](https://www.elastic.co/guide/en/beats/filebeat/7.6/configuration-filebeat-options.html)  
says:

To configure Filebeat manually (instead of using [modules](https://www.elastic.co/guide/en/beats/filebeat/7.6/filebeat-modules-overview.html)), you specify a list of inputs in the `filebeat.inputs` section of the `filebeat.yml` . Inputs specify how Filebeat locates and processes input data.

So. I've deleted netflow input definition from filebeat.inputs infilebeat.yml and evething works fine.  
Sorry.

---

<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 14, 2020, 9:49am UTC](https://discuss.elastic.co/t/udp-127-0-0-1-bind-address-already-in-use-in-7-6-netflow-module/228222/6 "2020-05-14T09:49:38Z")

</div>

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