Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

how to set keepalive ? #66

Closed
mr2qin opened this issue Apr 17, 2017 · 2 comments
Closed

how to set keepalive ? #66

mr2qin opened this issue Apr 17, 2017 · 2 comments

Comments

@mr2qin
Copy link

mr2qin commented Apr 17, 2017

  • Version: 5.0.1
  • Operating System: centos7
  • Config File (if you have sensitive info, please remove it):
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}"
     }
}

Sometimes the client disconnected, but there is no disconnect the server side, 4561 the number of connections, has increased
https://discuss.elastic.co/t/logstash-input-tcp-keepalive/82375

@red8888
Copy link

red8888 commented Jul 7, 2017

I have the same problem. TCP keep alive needs to be implemented by the application and for some reason logstash doesn't implement it. You might have to switch to a different app if you need tcp keep alive support.

@kares
Copy link
Contributor

kares commented Sep 25, 2020

the plugin supports the tcp_keep_alive => true configuration option (since 5.0.9 #116)

@kares kares closed this as completed Sep 25, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants