how to clean old logs on vcsa 6

3
(1)

/dev/sda3 Full or you see messages: no space left on device

For cleaning log you must boot appliance in link-shell-link.

You will see that the audit log will grow till to fill up the entire system partition.
This is caused to the fact that the root password is expired.
Ref. KB: https://kb.vmware.com/s/article/2149278

root@vcsa1 [ /var/log/audit ]# > audit.log

Navigate to the /var/log/audit folder with this command:

cd /var/log/audit

Run this command to verify the issue is with the audit.log file being too large (a few GBs):

ls -lh
For example:

ls -lh

total 3.5G
-rw------- 1 root root 3.5G Feb 3 16:55 audit.log
-rw------- 1 root root 445K Apr 8 2016 audit.log-20160408.bz2
-rw------- 1 root root 447K Apr 9 2016 audit.log-20160409.bz2

Truncate (clean the content without deleting the file) the audit.log file with this command:

truncate -s 0 audit.log

and restart VCSA…

27

How useful was this post?

Click on a star to rate it!

Average rating 3 / 5. Vote count: 1

No votes so far! Be the first to rate this post.

Scroll to Top