Home:ALL Converter>Exporting logs using journald / rsyslogd

Exporting logs using journald / rsyslogd

Ask Time:2021-12-17T00:01:36         Author:Tanika Garg

Json Formatter

I am trying to export kernel logs (/var/log/messages) to remote Syslog servers. Till now, most of the system logs are stored in journald currently and rsyslogd is disabled.

So, I am planning to use rsyslogd to export logs (By configuring the rsyslog.conf file). Firstly, I will pass those kernel logs from journald to rsyslogd and then export them.

Can someone suggest if this is the right path to proceed or I can use directly journald to achieve the same?

Author:Tanika Garg,eproduced under the CC 4.0 BY-SA copyright license with a link to the original source and this disclaimer.
Link to original article:https://stackoverflow.com/questions/70382088/exporting-logs-using-journald-rsyslogd
yy