StreamDriver.Mode

Sets the driver mode for the selected network stream driver.

This parameter applies to imtcp: TCP Syslog Input Module.

Name:

StreamDriver.Mode

Scope:

module, input

Type:

integer

Default:

module=0, input=module parameter

Required?:

no

Introduced:

at least 5.x, possibly earlier

Description

Sets the driver mode for the currently selected network stream driver. <number> is driver specific. For the built-in TCP stream drivers, mode 0 is plain TCP and mode 1 is TLS. Selecting a TLS-capable driver such as ossl, gtls, or mbedtls does not activate TLS unless the mode is 1. In global(compatibility.defaults.secure="strict"), an omitted mode is promoted to 1 when the effective stream driver is TLS-capable, while an explicit mode 0 is rejected.

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

Module usage

module(load="imtcp" streamDriver.mode="...")

Input usage

input(type="imtcp" port="514" streamDriver.mode="...")

Legacy names (for reference)

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

  • $InputTCPServerStreamDriverMode — maps to StreamDriver.Mode (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.