logstash-plugins / logstash-input-tcp

Apache License 2.0
35 stars 75 forks source link

logging connection reset errors on health-checks #167

Closed kares closed 3 years ago

kares commented 3 years ago

currently when doing health-checks (e.g. when behind HAProxy) against the port the plugin will log the connection reset:

[2021-01-29T14:49:40,360][ERROR][logstash.inputs.tcp ] Error in Netty pipeline: java.io.IOException: Connection reset by peer

plugin does assume all traffic arriving is one to receive data from, which is legit but potentially can be improved to detect tcp pings.

we should review logging to not log resets at the error level - warn/info level should be sufficient (more details in debug).

kares commented 3 years ago

potentially related issue: https://github.com/logstash-plugins/logstash-input-tcp/issues/164

dizlajk commented 3 years ago

plugin does assume all traffic arriving is one to receive data from, which is legit but potentially can be improved to detect tcp pings.

@kares Could you make it a feature request?