Logstash tcp input插件 keepalive 的问题

我使用logstashtcp input插件,它是server端,在使用的过程中,client异常断开连接,但是server没有断开,
所以服务器的TCP连接数一直在增加;
我试着修改OS tcp_keepalive参数,但是不起作用

logstash version 5.0.1

tcp config:
input { tcp { host => "0.0.0.0" port => 4561 mode => "server" codec => json_lines } } output { stdout{codec =>rubydebug} elasticsearch { hosts => ["host1:9292","host2:9292"] flush_size => 10000 idle_flush_time => 2 index=>"logstash-task-%{taskId}-%{+YYYYMMdd}" } }
4561端口的连接数:
[root@logstash-01 ~]# netstat -apn | grep 4561 | wc -l 2069 [root@logstash-01 ~]#
[root@logstash-01 ~]# sysctl -a | grep keep net.ipv4.tcp_keepalive_intvl = 75 net.ipv4.tcp_keepalive_probes = 9

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