/var/log/auth.log not rotating automatically on Cloud Director 10.x appliance
search cancel

/var/log/auth.log not rotating automatically on Cloud Director 10.x appliance

book

Article ID: 321852

calendar_today

Updated On:

Products

VMware Cloud Director

Issue/Introduction

How to restore proper log rotation in effected environment.

Symptoms:
  • /var/log/auth.log files are not rotating correctly resulting in excessive consumed storage on partition.


Environment

VMware Cloud Director 10.x

Cause

Cloud Director 10.x Photon appliance deployed without an entry for auth.log in the /etc/logrotate.conf file.

Resolution

Add the following entry to /etc/logrotate.conf on the Cloud Director 10.x appliance.

/var/log/auth.log {
        rotate 5
        daily
        copytruncate
        compress
        notifempty

}


You may require a reboot of the cell before the /var/log/auth.log begins to rotate daily. 

Additional Information

Impact/Risks:
Excessive storage consumption.