Skip to content

Add TCP keepalive to Logstash output plugins #17614

Open
@DonDallas71

Description

@DonDallas71

Would it be possible to add support for TCP keepalive in some of the output plugins by default?

I found that the tcp input plugin supports keepalive
/usr/share/logstash/vendor/bundle/jruby/3.1.0/gems/logstash-input-tcp-6.4.3-java/lib/logstash/inputs/tcp.rb

However I need this on some output plugins
/usr/share/logstash/vendor/bundle/jruby/3.1.0/gems/logstash-output-syslog-3.0.5/lib/logstash/outputs/syslog.rb
/usr/share/logstash/vendor/bundle/jruby/3.1.0/gems/logstash-output-tcp-6.2.1/lib/logstash/outputs/tcp.rb

Currently I am manually duplicating the keepalive settings from the tcp-input plugin over to the tcp-output and syslog-output plugins to enable this feature every time I update logstash. Would be nice if this were baked in so it could be easily turned on in the config.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions