OCI: /var/log/Messages file is empty
in Linux
Applies To:
Oracle Cloud Infrastructure - Version N/A and later
Linux x86-64 on Oracle Public Cloud
Symptoms:
There were no messages populated in /var/log/messages file and file size is zero
root@test# ls -lart| grep messages -rw-r----- 1 root logs 0 Nov 26 00:01 messages
Cause:
/var/log/messages entry is commented and misconfigured in /etc/rsyslog.conf
root@test# more rsyslog.conf | grep /var/log/messages #*.info;local0.none;mail.none;auth.none;authpriv.none;cron.none -/var/log/messages
Solution:
1)Correct the /var/log/messages entry in /etc/rsyslog.conf as below
*.info;local0.none;mail.none;auth.none;authpriv.none;cron.none /var/log/messages
Tagged:
0