MaxSessions

Limits the number of concurrent diagnostic control connections accepted.

This parameter applies to imdiag: Diagnostic instrumentation.

Name:

MaxSessions

Scope:

module

Type:

integer

Default:

module=20

Required?:

no

Introduced:

at least 5.x, possibly earlier

Description

Defines how many client sessions the diagnostic listener accepts at once. By default the listener allows 20 concurrent sessions. The limit must be set before ServerRun creates the TCP listener. Additional connection attempts beyond the configured number are rejected.

Module usage

module(load="imdiag" maxSessions="10")

Legacy names (for reference)

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

  • $IMDiagMaxSessions — maps to MaxSessions (status: legacy)

See also

See also imdiag: Diagnostic instrumentation.


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.