VMware Cloud Community
deadheadHS
Contributor
Contributor

VCSA /storage/log partition

Hi, 

I have recently had a vCenter that has its log partition filled up to 100%. I have went through the below KB and cleared out old logs that has got me back down to 70%, however I was wondering if there is any way to set a retention policy on the logs in the attached KB to prevent this happening again in future. 

https://kb.vmware.com/s/article/83070 

Thanks, 

Gareth

Labels (3)
0 Kudos
1 Reply
pmichelli
Hot Shot
Hot Shot

I opened an SR about this problem about a year ago.  I was given these commands to run.  it simplifies the steps in the KB.

find /storage/log/vmware/ -mtime +1 -type f -name "localhost_access*" | while read file; do rm "$file" ; done
find /storage/log/vmware/ -mtime +1 -type f -name "catalina*log" | while read file; do rm "$file" ; done

I have to do this every few months. vCenter 7.0.2e 

0 Kudos