# java.io.IOException: Connection reset by peer

**URL:** <https://discuss.elastic.co/t/java-io-ioexception-connection-reset-by-peer/228897>\
**Category:** Logstash\
**Created:** [April 20, 2020, 3:41pm UTC](https://discuss.elastic.co/t/java-io-ioexception-connection-reset-by-peer/228897 "2020-04-20T15:41:23Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Konathala\_Naveen](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/konathala_naveen/32/54398_2.png) [@Konathala\_Naveen](https://discuss.elastic.co/u/Konathala_Naveen)\
**Post date:** [April 20, 2020, 3:41pm UTC](https://discuss.elastic.co/t/java-io-ioexception-connection-reset-by-peer/228897/1 "2020-04-20T15:41:23Z")

</div>

We have the Environment Logstash with input plugin as "TCP-input plugin" And output to file.  
And we are sending syslogs using rsyslog to logstash tcp input plugin .  
But intermittently(after 5 to 6 hours) we are getting  
[ERROR][logstash.inputs.tcp] Error in Netty pipeline: java.io.IOException: Connection reset by peer

When we are getting this issue,we are reduction in throughput

We are using Logstash 6.8.3  
TCP input plugin 5.2.2  
TCP input plugin mode:server  
TCP keep Alive: false

Can you please help on this.What is the reason for that?And how to fix it.

---

<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 18, 2020, 3:41pm UTC](https://discuss.elastic.co/t/java-io-ioexception-connection-reset-by-peer/228897/2 "2020-05-18T15:41:28Z")

</div>

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