When a VMware vCenter Server Appliance (VCSA) reports that storage is running low, large log files may be part of the problem. Clearing vCenter storage logs can recover space, but deleting active or unidentified files may disrupt services, remove useful troubleshooting evidence, or make an appliance harder to support. The safe approach is to check which partition is full, identify what is using space, and use supported log-rotation or cleanup methods rather than deleting files indiscriminately.
This guide explains how to check vCenter storage, locate large logs, and decide what to do next. It applies generally to modern VCSA deployments; exact menus and file locations can differ by vCenter version. If vCenter is already unstable or a partition is completely full, contact VMware or Broadcom support before making manual changes.
What Does “Clear vCenter Storage Log” Mean?
In everyday use, “clear vCenter storage log” usually means freeing space on a VCSA partition that contains logs. The main log area is commonly /storage/log. Some system logs may also be accessed through /var/log, which can link to appliance storage. The important distinction is that vCenter’s storage partitions are separate: a full log partition is not the same problem as a full database, core-dump, or update-manager partition.
Log files record events such as service activity, authentication attempts, database operations, and errors. They can be essential when investigating an outage. A file that looks old or unusually large may still be active, required by a service, or needed for a support investigation. Avoid treating all files with “log” in the name as safe to remove.
Check vCenter Disk Usage First
Start with the appliance’s built-in monitoring rather than deleting files. Open the VCSA Appliance Management Interface (VAMI) in a browser at https://<vcenter-appliance-address>:5480, sign in, and review Monitor > Disks. Check which partition is low on space and whether usage is continuing to increase. Menu names can vary slightly by release.
You can also check from the appliance shell. Use the VAMI or your organization’s approved process to enable SSH if necessary, connect as an authorized administrator, and enter the Bash shell if prompted. Then run these read-only commands:
-
df -hshows used and available space on mounted filesystems. -
df -ishows inode usage, which matters if a partition contains an exceptionally large number of small files. -
du -x -h --max-depth=1 /storagegives a high-level view of space used in storage directories.
Compare the results with the VAMI display. If /storage/log is not the full partition, clearing logs is unlikely to solve the issue. For example, space under /storage/core may be occupied by crash dumps, while other storage areas can contain database or update-related data. Do not remove files from those locations simply because they are large.
Find the Largest Log Files Safely
If the log partition is the problem, inspect it before taking action. This command lists large entries under the log directory without changing or removing anything:
du -ahx /storage/log 2>/dev/null | sort -h | tail -n 20
The -x option keeps the search on the same filesystem, and the final lines show the largest entries. To inspect file names and modification dates, use:
find /storage/log -type f -printf '%TY-%Tm-%Td %TH:%TM %s %p\n' 2>/dev/null | sort -k3,3n | tail -n 20
These commands are for investigation only. A large file may be a current service log, a rotated log, an archive, or something else. Note its full path, size, and timestamp, then check the file’s purpose for your vCenter version. If you are unsure, preserve it and ask your administrator or support team to identify it.
Use Supported Log Rotation and Cleanup
VCSA services are designed to manage many logs through rotation: older log data is moved into rotated files, compressed, or removed according to appliance policies. When a log grows unexpectedly, the underlying cause may be a service error repeatedly writing messages, a misconfigured integration, or a rotation problem. Deleting the file can temporarily free space while leaving the cause untouched, so check for a recurring error or a service that is generating an unusual amount of output.
For routine maintenance, use the controls and procedures supported for your installed vCenter version. Review disk status in VAMI, verify that appliance services are healthy, and consult the applicable VMware/Broadcom documentation or support guidance before changing log-retention settings. Do not edit rotation configuration files or run a manual rotation command unless a version-specific procedure explicitly recommends it. Appliance behavior and supported maintenance steps can change between releases.
If a log is growing rapidly, capture its path and a small amount of relevant context for troubleshooting, following your security and privacy requirements. Then investigate the associated service and recent changes, such as upgrades, backup jobs, monitoring integrations, or repeated login failures. Correcting the source of repeated messages is usually more effective than periodically removing the output.
What Not to Delete
Do not run broad commands such as rm -rf /storage/log/*, empty log directories, or delete files based only on age. These actions can remove active logs, break expected permissions or file paths, and erase evidence needed to diagnose a fault. Avoid truncating an active file with shell redirection, too: a service may continue writing to an open file, so the expected space might not be released and the log may become unusable.
Be especially careful with files outside the log partition. Core dumps in /storage/core can be large, but they may be required to diagnose a crash. Database files and appliance configuration data are not disposable logs, even if they appear to contain old or temporary data. Never delete files from /storage/db, or other application-data directories, to make space unless a documented procedure or support engineer directs you to do so.
- Do not delete active or unidentified files.
- Do not remove an entire log directory or change its permissions.
- Do not assume that compressed or old files are safe to discard.
- Do not reboot a nearly full appliance as a substitute for finding the cause.
- Do not use third-party cleanup scripts unless they are approved for your vCenter version.
If the VCSA Partition Is Already Full
A completely full partition can affect services and may prevent vCenter from operating normally. Avoid making repeated changes while the appliance is in a degraded state. First record the VCSA version, the affected partition, the available space shown in VAMI or df -h, and any visible service errors. If possible, take screenshots or copy relevant output without creating a large support bundle on the full appliance.
Contact VMware/Broadcom support or follow the official version-specific recovery procedure. If a support bundle is requested, consider where it will be generated and how much space it may require; download it to a separate system when the supported workflow allows. Do not delete logs that support may need until the issue has been assessed.
If you have already identified an obsolete archived file and have explicit approval to remove it, follow the documented instructions for that exact file and version. Confirm the path carefully before any removal, preserve required evidence, and recheck disk usage afterward. For future protection, monitor VAMI disk alerts and investigate a partition that repeatedly fills rather than relying on manual cleanup.
Frequently Asked Questions
Can I delete files from /storage/log? Not indiscriminately. Some files are active or needed for troubleshooting. Identify the file and use a supported, version-specific cleanup procedure before removing anything.
Will clearing vCenter logs fix a full database partition? No. Logs and database files occupy different areas. Check the specific partition first; deleting logs will not safely resolve a full database filesystem.
Does restarting vCenter clear its logs? No. A restart does not provide a reliable or supported way to reclaim log space, and it can interrupt management services. Diagnose the partition and the source of growth instead.
Why does the log partition fill again after cleanup? A service may be generating repeated errors, rotation may not be working as expected, or an integration may be producing excessive output. Look for the file that grows and investigate its source rather than repeating manual deletion.
Conclusion
To clear vCenter storage logs safely, first confirm that the VCSA log partition is actually the one running out of space. Use VAMI and read-only shell commands to identify large files, then follow supported log-rotation or cleanup guidance for your vCenter version. Avoid deleting active logs, core dumps, database files, or anything you cannot confidently identify. When a partition is full, vCenter is unstable, or the correct cleanup action is unclear, preserve the evidence and involve VMware/Broadcom support.
Disclaimer: Articles are written by Humans, AI or Both. Verify Important information.