MaxSessions¶
Sets the maximum number of sessions supported.
This parameter applies to imtcp: TCP Syslog Input Module.
- Name:
MaxSessions
- Scope:
module, input
- Type:
integer
- Default:
module=200, input=module parameter
- Required?:
no
- Introduced:
at least 5.x, possibly earlier
Description¶
Sets the maximum number of sessions supported. This must be set before the first $InputTCPServerRun directive.
The same-named input parameter can override this module setting.
Each session owns its framing, transport, TLS, and optional decompressor state.
Consequently, unusually large values multiply the memory retained by idle or
incomplete connections. A zlib stream:always session has a bounded history
window of at most 32 KiB plus decoder bookkeeping; completed zlib streams release
that decoder state immediately, but incomplete streams retain it until the
connection closes. Size MaxSessions for the listener’s expected concurrency
and available memory.
Module usage¶
module(load="imtcp" maxSessions="500")
Input usage¶
input(type="imtcp" port="514" maxSessions="500")
Legacy names (for reference)¶
Historic names/directives for compatibility. Do not use in new configs.
$InputTCPMaxSessions — maps to MaxSessions (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–2026 Rainer Gerhards and others. Licensed under the Apache License 2.0.