# Filebeats Getting Connection reset by peer error

**URL:** <https://discuss.elastic.co/t/filebeats-getting-connection-reset-by-peer-error/242250>\
**Category:** Beats\
**Tags:** docker, filebeat\
**Created:** [July 22, 2020, 8:58pm UTC](https://discuss.elastic.co/t/filebeats-getting-connection-reset-by-peer-error/242250 "2020-07-22T20:58:52Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![deep\_sandhu](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/deep_sandhu/32/48371_2.png) [@deep\_sandhu](https://discuss.elastic.co/u/deep_sandhu)\
**Post date:** [July 22, 2020, 8:58pm UTC](https://discuss.elastic.co/t/filebeats-getting-connection-reset-by-peer-error/242250/1 "2020-07-22T20:58:52Z")

</div>

I am trying to send logs from filebeat(from dev host) to logstash (running in kubernetes separate Node), but getting following error

[INFO] 2020-07-22 20:42:19.309 [defaultEventExecutorGroup-4-1] BeatsHandler - [local: 0.0.0.0:5044, remote: 10.233.125.0:4025] Handling exception: Connection reset by peer  
[WARN] 2020-07-22 20:42:19.309 [nioEventLoopGroup-2-2] DefaultChannelPipeline - 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.PooledUnsafeDirectByteBuf.setBytes(PooledUnsafeDirectByteBuf.java:288) ~[netty-all-4.1.30.Final.jar:4.1.30.Final]  
at io.netty.buffer.AbstractByteBuf.writeBytes(AbstractByteBuf.java:1128) ~[netty-all-4.1.30.Final.jar:4.1.30.Final]  
at io.netty.channel.socket.nio.NioSocketChannel.doReadBytes(NioSocketChannel.java:347) ~[netty-all-4.1.30.Final.jar:4.1.30.Final]  
at io.netty.channel.nio.AbstractNioByteChannel$NioByteUnsafe.read(AbstractNioByteChannel.java:148) ~[netty-all-4.1.30.Final.jar:4.1.30.Final]  
at io.netty.channel.nio.NioEventLoop.processSelectedKey(NioEventLoop.java:644) ~[netty-all-4.1.30.Final.jar:4.1.30.Final]  
at io.netty.channel.nio.NioEventLoop.processSelectedKeysOptimized(NioEventLoop.java:579) ~[netty-all-4.1.30.Final.jar:4.1.30.Final]  
at io.netty.channel.nio.NioEventLoop.processSelectedKeys(NioEventLoop.java:496) ~[netty-all-4.1.30.Final.jar:4.1.30.Final]  
at io.netty.channel.nio.NioEventLoop.run(NioEventLoop.java:458) [netty-all-4.1.30.Final.jar:4.1.30.Final]  
at io.netty.util.concurrent.SingleThreadEventExecutor$5.run(SingleThreadEventExecutor.java:897) [netty-all-4.1.30.Final.jar:4.1.30.Final]  
at io.netty.util.concurrent.FastThreadLocalRunnable.run(FastThreadLocalRunnable.java:30) [netty-all-4.1.30.Final.jar:4.1.30.Final]  
at java.lang.Thread.run(Thread.java:834) [?:?]

In client side (filebeat dev host) issue shows like 'connection is closed, I/O exception'

I am using all latest versions  
Logstash 7.8.0  
Filebeat 7.8.0

Logstash Config is

logstash.yml: |  
http.host: "0.0.0.0"  
path.config: /usr/share/logstash/pipeline  
logstash.conf: |  
input {  
beats {  
port =\> 5044  
client\_inactivity\_timeout =\> 1200  
}  
}  
output {  
elasticsearch {  
hosts =\> ["elasticsearch-logging:9200"]  
}  
}

Tried different configs & solutions of other topics discussions but nothing works.

---

<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:** [August 19, 2020, 10:59pm UTC](https://discuss.elastic.co/t/filebeats-getting-connection-reset-by-peer-error/242250/2 "2020-08-19T22:59:06Z")

</div>

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