# KeepAlive.Interval

Sets the interval between keepalive probes.

This parameter applies to imptcp: Plain TCP Syslog.

Name:

  KeepAlive.Interval

Scope:

  input

Type:

  integer

Default:

  input=0

Required?:

  no

Introduced:

  at least 5.x, possibly earlier

## Description

The interval between subsequential keepalive probes, regardless of what the connection has exchanged in the meantime. The default, 0, means that the operating system defaults are used. This has only effect if keep-alive is enabled. The functionality may not be available on all platforms.

## Input usage

    input(type="imptcp" keepAlive.interval="...")

### Legacy names (for reference)

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

- $InputPTCPServerKeepAlive_intvl — maps to KeepAlive.Interval (status: legacy)

## See also

See also imptcp: Plain TCP Syslog.

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.