# InputGSSListenPortFileName

Writes the listener’s bound port number to the specified file.

This parameter applies to imgssapi: GSSAPI Syslog Input Module.

Name:

  InputGSSListenPortFileName

Scope:

  input

Type:

  word

Default:

  none

Required?:

  no

Introduced:

  8.38.0

## Description

Specifies the path to a file where the listener will write its bound port number upon startup. This is useful for integration with other services or in test environments that use dynamic ports.

Note

If this parameter is set, a port of `0` for `InputGSSServerRun` is accepted. Otherwise, a port of `0` defaults to `514`.

## Input usage

    module(load="imgssapi")
    $inputGssListenPortFileName "/var/run/rsyslog-gss-port"

### Legacy names (for reference)

- $inputGssListenPortFileName — maps to InputGSSListenPortFileName (status: legacy)

## See also

See also imgssapi: GSSAPI 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.