Close

vCloud Director request.log not clearing

In this article, I am going to guide you how to solve/workaround clear these logs automatically

I noticed that one of the cloud director cells was inactive in the portal.

I did login via ssh to the cell and found out that the /dec/sda3 was full and had no space left.

checking for logs file

cd /opt/vmware/vcloud-director/logs/
ls -lah

there is a lot of request.log file

deleting requset.logs file to clean up space.

rm -r *request.log

/dev/sda3 director was full this was due to the request.log not clearing. To clear these logs automatically please run the following on all cells:

  1. edit the global.property file on each cell and add the following line vcloud.http.log.retainDays=<desired number of days>
  2. vi /opt/vmware/vcloud-director/etc/global.properties 
  3. add vcloud.http.log.retainDays=<desired number of days>

After this change please reboot each cell so that the configuration is applied.

I hope this article has been informative. thank you for reading.

Leave a Reply

Your email address will not be published. Required fields are marked *