# 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.

## 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–2025 Rainer Gerhards and others. Licensed under the Apache License 2.0.