# Logstash Application throwing up warning "Connection reset by peer"

**URL:** <https://discuss.elastic.co/t/logstash-application-throwing-up-warning-connection-reset-by-peer/276489>\
**Category:** Logstash\
**Created:** [June 21, 2021, 7:14am UTC](https://discuss.elastic.co/t/logstash-application-throwing-up-warning-connection-reset-by-peer/276489 "2021-06-21T07:14:08Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![theju0805](https://avatars.discourse-cdn.com/v4/letter/t/cc9497/32.png) [@theju0805](https://discuss.elastic.co/u/theju0805)\
**Post date:** [June 21, 2021, 7:14am UTC](https://discuss.elastic.co/t/logstash-application-throwing-up-warning-connection-reset-by-peer/276489/1 "2021-06-21T07:14:08Z")

</div>

Logstash application throwing up warning "Connection reset by peer".  
Logstash is hosted on Azure. This warning doesn't exist or occur on the VM, but after the VM is scaled up(VMSS) I see the warning coming up continuously in the Logstash log.

Stack Trace :  
][INFO][org.logstash.beats.BeatsHandler][main][3c5d35c129b0155cef51abe1eb1e1d08a44cefd7d0d4d4e10fc4223b61c22a65] [local: 0.0.0.0:5044, remote: 0:0:0:0:0:0:0:1:37584] Handling exception: java.io.IOException: Connection reset by peer (caused by: java.io.IOException: Connection reset by peer)  
[2021-05-25T11:22:13,552][WARN][io.netty.channel.DefaultChannelPipeline][main][3c5d35c129b0155cef51abe1eb1e1d08a44cefd7d0d4d4e10fc4223b61c22a65] An exceptionCaught() event was fired, and it reached at the tail of the pipeline. It usually means the last handler in the pipeline did not handle the exception.  
java.io.IOException: Connection reset by peer  
at sun.nio.ch.FileDispatcherImpl.read0(Native Method) ~[?:?]  
at sun.nio.ch.SocketDispatcher.read(SocketDispatcher.java:39) ~[?:?]  
at sun.nio.ch.IOUtil.readIntoNativeBuffer(IOUtil.java:276) ~[?:?]  
at sun.nio.ch.IOUtil.read(IOUtil.java:233) ~[?:?]  
at sun.nio.ch.IOUtil.read(IOUtil.java:223) ~[?:?]  
at sun.nio.ch.SocketChannelImpl.read(SocketChannelImpl.java:358) ~[?:?]  
at io.netty.buffer.PooledByteBuf.setBytes(PooledByteBuf.java:253) ~[netty-all-4.1.49.Final.jar:4.1.49.Final]  
at io.netty.buffer.AbstractByteBuf.writeBytes(AbstractByteBuf.java:1133) ~[netty-all-4.1.49.Final.jar:4.1.49.Final]  
at io.netty.channel.socket.nio.NioSocketChannel.doReadBytes(NioSocketChannel.java:350) ~[netty-all-4.1.49.Final.jar:4.1.49.Final]  
at io.netty.channel.nio.AbstractNioByteChannel$NioByteUnsafe.read(AbstractNioByteChannel.java:148) ~[netty-all-4.1.49.Final.jar:4.1.49.Final]  
at io.netty.channel.nio.NioEventLoop.processSelectedKey(NioEventLoop.java:714) ~[netty-all-4.1.49.Final.jar:4.1.49.Final]  
at io.netty.channel.nio.NioEventLoop.processSelectedKeysOptimized(NioEventLoop.java:650) ~[netty-all-4.1.49.Final.jar:4.1.49.Final]  
at io.netty.channel.nio.NioEventLoop.processSelectedKeys(NioEventLoop.java:576) ~[netty-all-4.1.49.Final.jar:4.1.49.Final]  
at io.netty.channel.nio.NioEventLoop.run(NioEventLoop.java:493) [netty-all-4.1.49.Final.jar:4.1.49.Final]  
at io.netty.util.concurrent.SingleThreadEventExecutor$4.run(SingleThreadEventExecutor.java:989) [netty-all-4.1.49.Final.jar:4.1.49.Final]  
at io.netty.util.internal.ThreadExecutorMap$2.run(ThreadExecutorMap.java:74) [netty-all-4.1.49.Final.jar:4.1.49.Final]  
at io.netty.util.concurrent.FastThreadLocalRunnable.run(FastThreadLocalRunnable.java:30) [netty-all-4.1.49.Final.jar:4.1.49.Final]  
at java.lang.Thread.run(Thread.java:834) [?:?]

Thanks in advance !

---

<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 19, 2021, 7:14am UTC](https://discuss.elastic.co/t/logstash-application-throwing-up-warning-connection-reset-by-peer/276489/2 "2021-07-19T07:14:35Z")

</div>

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