ListenPortFileName

Writes the UDP port selected by the operating system when imdtls binds to port 0. .. summary-end

This parameter applies to imdtls: Input Module for DTLS Protocol over UDP.

Name:

listenPortFileName

Scope:

input

Type:

word

Default:

none

Required?:

no

Introduced:

v8.2606.0

Description

When port="0" is configured, the operating system selects an available UDP port for the imdtls listener. listenPortFileName writes that selected port number to the named file after the socket is bound.

This is primarily useful for tests and automation that must avoid preselecting a port before the listener starts.

Input usage

module(load="imdtls")
input(type="imdtls" port="0" listenPortFileName="imdtls.port")

See also

See also imdtls: Input Module for DTLS Protocol over UDP.


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.