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

Missing tcp_keep_alive parameter and growing ESTABLISHED #69

Open
rockandska opened this issue Nov 15, 2021 · 0 comments
Open

Missing tcp_keep_alive parameter and growing ESTABLISHED #69

rockandska opened this issue Nov 15, 2021 · 0 comments
Labels

Comments

@rockandska
Copy link

Logstash information:

Please include the following information:

  1. Logstash version : 7.9.1
  2. Logstash installation source: rpm
  3. How is Logstash being run : systemd
  4. How was the Logstash Plugin installed : bundle with the package

JVM (e.g. java -version):

If the affected version of Logstash is 7.9 (or earlier), or if it is NOT using the bundled JDK or using the 'no-jdk' version in 7.10 (or higher), please provide the following information:

  1. JVM version : openjdk 1.8.0
  2. JVM installation source: Operating System's package manager

OS version (uname -a if on a Unix-like system):

Centos 7.5
3.10.0-957.27.2.el7.x86_64

Description of the problem including expected versus actual behavior:

We have many network equipments who send their log to a Logstash server.
Those flux are coming through a firewall who kill idle connection after 60min.
Since those equipments are not too verbose, I see many connections for the same equipment as ESTABLISHED on Logstash server when I see only one on the other side.
Since SYSLOG INPUT doesn't provide tcp_keep_alive parameter, and netstat --timers -tn show clearly that is the case, the connections in ESTABLISHED keeps growing indefinitely since the kernel is not aware that it should clean them.
As a result, the server exceed the maximum ulimit and refuse to accept new connection and the only solution is to restart Logstash to free the ESTABLISHED connection.

Solution:

Have tcp_keep_alive parameter as it is provided in TCP Input plugin.

Regards,

@rockandska rockandska added the bug label Nov 15, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant