/var/log/auth.log not rotating automatically on vCloud Director 9.5.x appliance
search cancel

/var/log/auth.log not rotating automatically on vCloud Director 9.5.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 for Service Provider 9.5.x

Cause

vCloud Director 9.5.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 vCD 9.5.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.