After upgrading or monitoring the vCenter Server Appliance (VCSA), users may encounter a warning:
"File system /storage/log is low on storage space"
Upon investigation, the file /storage/log/vmware/statsmon/statsmoitor-alarms.log was found to be large (e.g., 4.4 GB) causing the partition to run out of space. In severe cases, this may also prevent vCenter services such as VPXD from starting.
vCenter 8.0.3 on build-24322831
The log file statsmoitor-alarms.log is not included in vCenter’s default log rotation policies.
Without rotation, this file grows indefinitely and can fill the /storage/log partition.
SSH to the vCenter as root.
Create a custom logrotate config file:
Add the following content:
Verify the configuration:
Run logrotate manually to test:
Check rotation has taken place:
Expected output (sample):
You may need to clear the log file content to immediately recover disk space:
Alternatively, use truncate:
⚠️ Warning: Only clear the file if you have confirmed it is safe to do so and no active analysis of the file is required.