UsePid¶
Selects which journal PID field to use: syslog, system, or both.
This parameter applies to imjournal: Systemd Journal Input Module.
- Name:
UsePid
- Scope:
module
- Type:
string (see Rsyslog Parameter String Constants)
- Default:
module=both
- Required?:
no
- Introduced:
at least 8.x, possibly earlier
Description¶
Determines the journal field that supplies the process identifier.
syslogUse
SYSLOG_PID.systemUse
_PID.bothTry
SYSLOG_PIDfirst and fall back to_PID. If neither is available, the message is parsed without a PID.
Module usage¶
module(load="imjournal" UsePid="...")
Notes¶
Case-insensitive values are accepted.
See also¶
See also imjournal: Systemd Journal 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.