# NetworkNamespace

Sets the value for the `networknamespace` property.

This parameter applies to imtcp: TCP Syslog Input Module.

Name:

  NetworkNamespace

Scope:

  module, input

Type:

  string (see Rsyslog Parameter String Constants)

Default:

  input=none

Required?:

  no

Introduced:

  v8.2512

## Description

Sets the network namespace for the listener.

- If not set, the listener operates in the default (startup) network namespace.

- The specified namespace must exist before rsyslogd starts (e.g., created via `ip netns add <name>`).

- This feature requires rsyslog to be built with `setns()` support. An error will be logged if a namespace is configured but support is missing.

- The underlying operating system must also support network namespaces.

## Input usage

    input(type="imtcp" port="514" NetworkNamespace="routing")
    input(type="imtcp" port="514" NetworkNamespace="management")

    module(load="imtcp" NetworkNamespace="routing")
    input(type="imtcp" port="514")
    input(type="imtcp" port="514" NetworkNamespace="management")

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