No system logging at /var/log/messages Print

  • 0

Some OpenVZ container templates do not include rsyslog.  In order to resolve, it's necessary to manually configure rsyslog and enable logging.   Use the following commands at CLI:


rm /var/log/journal/*/*
rm /var/lib/rsyslog/imjournal.state
systemctl restart systemd-journald
systemctl restart rsyslog

If that does not work, try:

yum install rsyslog systemctl enable rsyslog systemctl start rsyslog

Was this answer helpful?

« Back