Thank you for supporting the Cloud Customer Connect Community in 2024. It's a gift to work with you!

Look back
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/secure Log File Is not Updated or Present in Linux Instance

in Linux 1 comment

Applies To:

Oracle Cloud Infrastructure - Version N/A and later  

Linux x86-64 

 

Symptoms: 

OCI Linux instance does not have a /var/log/secure or the log files contents are not updated.

$ sudo ls -l /var/log/secure 
ls: cannot access /var/log/secure: No such file or directory 

 

Cause:

The /etc/rsyslog.conf file does not have a configuration to log information to /var/log/secure

 

Solution:

1) As the root user, edit the file /etc/rsyslog.conf and append the following lines:

authpriv.*                                             /var/log/secure 

2) Then restart and enable rsyslog service: 

$ sudo systemctl restart rsyslog 
$ sudo systemctl enable rsyslog 

Howdy, Stranger!

Log In

To view full details, sign in.

Register

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