JournalCTL – where have my logs gone?

When looking for my postfix logs on a new openSUSE install i noticed the file was missing…

Quick look around and its all moved to journalctl.

 

If you want to see your postfix logs off the bat use the following :

journalctl -u postfix

If you want your old logs back do the following :

Check rsyslog is install

rpm -q rsyslog

If not Install rsyslog

zypper install rsyslog

then check its enabled

systemctl is-enabled rsyslog.service

Then setup the journal to forward to syslog

vi /etc/systemd/journald.conf

enable the line

ForwardToSyslog=yes

 

I then restarted the server and the logs showed up as expected in

/var/log/mail

All done.

Leave a Reply

Your email address will not be published. Required fields are marked *

19 + four =

This site uses Akismet to reduce spam. Learn how your comment data is processed.