# Filebeat error for port ERROR: Address already in use

**URL:** https://discuss.elastic.co/t/filebeat-error-for-port-error-address-already-in-use/336422
**Category:** Logstash
**Created:** [June 20, 2023, 5:10am UTC](https://discuss.elastic.co/t/filebeat-error-for-port-error-address-already-in-use/336422 "2023-06-20T05:10:28Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![yogesh.gangwar](https://avatars.discourse-cdn.com/v4/letter/y/7993a0/32.png) [@yogesh.gangwar](https://discuss.elastic.co/u/yogesh.gangwar)
#### Post date: [June 20, 2023, 5:10am UTC](https://discuss.elastic.co/t/filebeat-error-for-port-error-address-already-in-use/336422/1 "2023-06-20T05:10:29Z")

</div>

While running the logstash I'm getting an issue of "A plugin had an unrecoverable error. Will restart this plugin."

\</ [2023-06-20T10:37:52,046][INFO][org.logstash.beats.Server][main][f36c0056714d92177d9fb7e027196d5cebe3f00bc21c0db2736b49400820de5b] Starting server on port: 5085  
[2023-06-20T10:37:58,068][ERROR][logstash.javapipeline][main][f36c0056714d92177d9fb7e027196d5cebe3f00bc21c0db2736b49400820de5b] A plugin had an unrecoverable error. Will restart this plugin.  
Pipeline\_id:main  
Plugin: \<LogStash::Inputs::Beats port=\>5085, id=\>"f36c0056714d92177d9fb7e027196d5cebe3f00bc21c0db2736b49400820de5b", enable\_metric=\>true, codec=\>\<LogStash::Codecs::Plain id=\>"plain\_e8924b03-ba59-4caf-9958-f7eebbd7f2f6", enable\_metric=\>true, charset=\>"UTF-8"\>, host=\>"0.0.0.0", ssl=\>false, add\_hostname=\>false, ssl\_verify\_mode=\>"none", ssl\_peer\_metadata=\>false, include\_codec\_tag=\>true, ssl\_handshake\_timeout=\>10000, tls\_min\_version=\>1, tls\_max\_version=\>1.2, cipher\_suites=\>["TLS\_ECDHE\_ECDSA\_WITH\_AES\_256\_GCM\_SHA384", "TLS\_ECDHE\_RSA\_WITH\_AES\_256\_GCM\_SHA384", "TLS\_ECDHE\_ECDSA\_WITH\_AES\_128\_GCM\_SHA256", "TLS\_ECDHE\_RSA\_WITH\_AES\_128\_GCM\_SHA256", "TLS\_ECDHE\_ECDSA\_WITH\_AES\_256\_CBC\_SHA384", "TLS\_ECDHE\_RSA\_WITH\_AES\_256\_CBC\_SHA384", "TLS\_ECDHE\_RSA\_WITH\_AES\_128\_CBC\_SHA256", "TLS\_ECDHE\_ECDSA\_WITH\_AES\_128\_CBC\_SHA256"], client\_inactivity\_timeout=\>60, executor\_threads=\>8\>  
Error: Address already in use  
Exception: Java::JavaNet::BindException  
Stack: sun.nio.ch.Net.bind0(Native Method) /\>

---

<div class="post-metadata">

### Author: ![carly.richmond](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/carly.richmond/32/104935_2.png) [@carly.richmond](https://discuss.elastic.co/u/carly.richmond)
#### Post date: [June 20, 2023, 8:54am UTC](https://discuss.elastic.co/t/filebeat-error-for-port-error-address-already-in-use/336422/2 "2023-06-20T08:54:33Z")

</div>

Hi @yogesh.gangwar,

Welcome to the community! Thank you for your question. Can you share your configuration?

> [@yogesh.gangwar](#):
>
> Address already in use

It looks like that port is already in use by another process on the host. Can you check you're not running multiple Filebeats or other processes with the same port, or change the configuration to another 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 18, 2023, 8:55am UTC](https://discuss.elastic.co/t/filebeat-error-for-port-error-address-already-in-use/336422/3 "2023-07-18T08:55:03Z")

</div>

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