Logstash: 5.3.0 nxlog: nxlog-ce-2.9.1716
Checking nestat I have like 300 established connections even though I have only about 50 hosts.
I have like 40 connections for some hosts when I the client's side there is only one active connection.
I added data_timeout => 500 to my input filter and restarted logstash but it looks like connections are still growing and remaining in the established state.
If the OS sees the connection as ESTABLISHED does that not count as an idle connection? Because in that case data_timeout would have no impact right?
My TCP keep alive settings are the default values, should I change this?:
# cat /proc/sys/net/ipv4/tcp_keepalive_time
7200
# cat /proc/sys/net/ipv4/tcp_keepalive_intvl
75
# cat /proc/sys/net/ipv4/tcp_keepalive_probes
9
I have like 40 connections open for single hosts is this expected behavior? Why are they are remaining in the ESTABLISHED state? Or is there a reason logstash needs multiple connections open for a single host like this?