| Type: | string |
| Default: | "*" |
Description: The namespace() option works exactly the same way as the respective option of the Journalctl command line tool.
The following modes of operation are available:
If you do not specify the namespace() option in your configuration, or if you specify an empty string, the systemd-journal() source reads and displays log data from all namespaces.
If you specify the namespace() option as namespace("*"), the systemd-journal() source reads and displays log data from all namespaces, interleaved.
If namespace(<specified-namespace>) is specified, the systemd-journal() source only reads and displays log data from the specified namespace.
If the namespace identifier is prefixed with "+" when you specify your namespace() option, the systemd-journal()source only reads and displays log data from the specified namespace and the default namespace, interleaved.
Syntax:namespace(string)
The following configuration example uses the default value for the namespace() option:
source s_journal
{
systemd-journal(namespace("*"));
};
The following configuration example uses a prefixed namespace identifier in the namespace() option:
source s_journal
{
systemd-journal(namespace("+foobar"));
};NOTE: Namespace support was introduced to the Journalctl command line tool in Systemd version 2.45. The syslog-ng OSE application supports the namespace() option from version 3.29. For further information about namespaces on the Systemd side, see Journal Namespaces.
© ALL RIGHTS RESERVED. Terms of Use Privacy Cookie Preference Center