You're almost there! Please answer a few more questions for access to the Applications content. Complete registration
Interested in joining? Complete your registration by providing Areas of Interest here. Register

OCI: /var/log/Messages file is empty

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

Howdy, Stranger!

Log In

To view full details, sign in.

Register

Don't have an account? Click here to get started!