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 String Constants)
- Default:
module=both
- Required?:
no
- Introduced:
at least 8.x, possibly earlier
Description¶
Determines the journal field that supplies the process identifier.
syslog
Use
SYSLOG_PID
.system
Use
_PID
.both
Try
SYSLOG_PID
first 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.