# Filebeat Issue - Connection Closed forcibly

**URL:** https://discuss.elastic.co/t/filebeat-issue-connection-closed-forcibly/175589
**Category:** Beats
**Tags:** filebeat
**Created:** [April 5, 2019, 12:19pm UTC](https://discuss.elastic.co/t/filebeat-issue-connection-closed-forcibly/175589 "2019-04-05T12:19:28Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![Ganesh999](https://avatars.discourse-cdn.com/v4/letter/g/a88e4f/32.png) [@Ganesh999](https://discuss.elastic.co/u/Ganesh999)
#### Post date: [April 5, 2019, 12:19pm UTC](https://discuss.elastic.co/t/filebeat-issue-connection-closed-forcibly/175589/1 "2019-04-05T12:19:28Z")

</div>

Hi All,

I have been receiving error while publishing data from filebeat to logstash.  
Below is the error

2019-04-05T03:55:19.382+0530 ERROR logstash/async.go:256 Failed to publish events caused by: write tcp XX.XX.XX.XX:61346-\>XX.XX.XX.XX:5044: wsasend: An existing connection was forcibly closed by the remote host.

Using the same filebeat for another machine having Windows, it is working

Did telnet and the port is open and also no firewall issues

---

<div class="post-metadata">

### Author: ![pierhugues](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/pierhugues/32/48383_2.png) [@pierhugues](https://discuss.elastic.co/u/pierhugues)
#### Post date: [April 11, 2019, 12:50pm UTC](https://discuss.elastic.co/t/filebeat-issue-connection-closed-forcibly/175589/2 "2019-04-11T12:50:37Z")

</div>

@Ganesh999 Logstash will close connection that are idle for too long, but the time is [configurable](https://www.elastic.co/guide/en/logstash/current/plugins-inputs-beats.html#plugins-inputs-beats-client_inactivity_timeout) I believe this is the issue you are gettting.

---

<div class="post-metadata">

### Author: ![Ganesh999](https://avatars.discourse-cdn.com/v4/letter/g/a88e4f/32.png) [@Ganesh999](https://discuss.elastic.co/u/Ganesh999)
#### Post date: [April 11, 2019, 1:43pm UTC](https://discuss.elastic.co/t/filebeat-issue-connection-closed-forcibly/175589/3 "2019-04-11T13:43:32Z")

</div>

Hi @pierhugues thanks for the reply.The files are emitting data per second basis and that too roughly 400 events. But added ignore\_older because it was reading old logs. The issue has been resolved now

---

<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 9, 2019, 1:47pm UTC](https://discuss.elastic.co/t/filebeat-issue-connection-closed-forcibly/175589/4 "2019-05-09T13:47:07Z")

</div>

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