KeepAlive

Enables TCP keep-alive packets on connections.

This parameter applies to imtcp: TCP Syslog Input Module.

Name:

KeepAlive

Scope:

module, input

Type:

boolean

Default:

module=off, input=module parameter

Required?:

no

Introduced:

at least 5.x, possibly earlier

Description

Enable or disable keep-alive packets at the tcp socket layer. The default is to disable them.

The same-named input parameter can override this module setting.

Module usage

module(load="imtcp" keepAlive="on")

Input usage

input(type="imtcp" port="514" keepAlive="on")

Legacy names (for reference)

Historic names/directives for compatibility. Do not use in new configs.

  • $InputTCPServerKeepAlive — maps to KeepAlive (status: legacy)

See also

See also imtcp: TCP Syslog Input Module.


Support: rsyslog Assistant | GitHub Discussions | GitHub Issues: rsyslog source project

Contributing: Source & docs: rsyslog source project

© 2008–2025 Rainer Gerhards and others. Licensed under the Apache License 2.0.