namespace¶
Writes journal entries to a specific systemd journal namespace instead of the default target.
This parameter applies to omjournal: Systemd Journal Output.
- Name:
namespace
- Scope:
input
- Type:
word
- Default:
none
- Required?:
no
- Introduced:
8.2406.0 (requires systemd v256+)
Description¶
Starting from systemd v256, the journal supports namespaces. This allows you to write to a specific namespace in the journal, which can be useful for isolating logs from different applications or components.
However, this feature has important limitations:
This parameter is mutually exclusive with the
templateparameter. If both are specified for the same action, the action fails with an error.Namespaces must be created before use. If a namespace does not exist, the action fails and logs an error. Create namespaces by adding directories under
/var/log/journal/. For more information, see the systemd-journald.service(8) man page.
Input usage¶
action(type="omjournal" namespace="audit-journal-namespace")
See also¶
See also omjournal: Systemd Journal Output.
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.