# UsePIDFromSystem

Obtains the process ID from the log socket instead of the message.

This parameter applies to imuxsock: Unix Socket Input Module.

Name:

  UsePIDFromSystem

Scope:

  input

Type:

  boolean

Default:

  input=off

Required?:

  no

Introduced:

  at least 7.0.0, possibly earlier

## Description

Specifies if the pid being logged shall be obtained from the log socket itself. If so, the TAG part of the message is rewritten. It is recommended to turn this option on, but the default is “off” to keep compatible with earlier versions of rsyslog.

## Input usage

    input(type="imuxsock" usePidFromSystem="on")

### Legacy names (for reference)

Historic names/directives for compatibility. Do not use in new configs. .. _imuxsock.parameter.legacy.inputunixlistensocketusepidfromsystem:

- $InputUnixListenSocketUsePIDFromSystem — maps to UsePIDFromSystem (status: legacy)

## See also

See also imuxsock: Unix Socket 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.