This commit is contained in:
Petr Bokoč 2024-05-31 15:22:39 +02:00
commit 4d2fc51fc4

View file

@ -1431,7 +1431,7 @@ As mentioned above, [application]*Rsyslog* and [application]*Journal*, the two l
By default, `rsyslogd` uses the `imjournal` module as a default input mode for journal files. With this module, you import not only the messages but also the structured data provided by `journald`. Also, older data can be imported from `journald` (unless forbidden with the [option]`$ImjournalIgnorePreviousMessages` directive). See xref:Viewing_and_Managing_Log_Files.adoc#s2-importing_data_from_journal[Importing Data from Journal] for basic configuration of `imjournal`.
As an alternative, configure `rsyslogd` to read from the socket provided by `journal` as an output for syslog-based applications. The path to the socket is `/run/systemd/journal/syslog`. Use this option when you want to maintain plain rsyslog messages. Compared to `imjournal` the socket input currently offers more features, such as ruleset binding or filtering. To import [application]*Journal* data trough the socket, use the following configuration in `/etc/rsyslog.conf`:
As an alternative, configure `rsyslogd` to read from the socket provided by `journal` as an output for syslog-based applications. The path to the socket is `/run/systemd/journal/syslog`. Use this option when you want to maintain plain rsyslog messages. Compared to `imjournal` the socket input currently offers more features, such as ruleset binding or filtering. To import [application]*Journal* data through the socket, use the following configuration in `/etc/rsyslog.conf`:
[subs="quotes"]
----
@ -1441,7 +1441,7 @@ $OmitLocalLogging off
----
The above syntax loads the `imuxsock` module and turns off the [option]`$OmitLocalLogging` directive, which enables the import trough the system socket. The path to this socket is specified separately in `/etc/rsyslog.d/listen.conf` as follows:
The above syntax loads the `imuxsock` module and turns off the [option]`$OmitLocalLogging` directive, which enables the import through the system socket. The path to this socket is specified separately in `/etc/rsyslog.d/listen.conf` as follows:
[subs="quotes"]
----