Vcenter storage log full directory
Symptoms
Purpose
Cause
Resolution
- Log in to the vCenter Server Appliance console as root user.
- Run this command to enable access the Bash shell:
shell.set –enabled true
- Type shell and press Enter.
- Navigate to this directory:
cd /usr/lib/vmware-sso/vmware-sts/webapps/sts/WEB-INF/classes/
- Run this command to back up the log4j.properties file:
cp log4j.properties log4j.properties.bak
- Open the log4j.properties file using a text editor.
- Locate the log4j.appender.LOGFILE.MaxFileSize and log4j.appender.LOGFILE.MaxBackupIndex parameters below this entry:
log4j.appender.LOGFILE.File=${catalina.base}/logs/vmware-identity-sts.log
- Change the value of parameters to 50 and 5 respectively:
For example:
log4j.appender.LOGFILE.MaxFileSize=50MB
log4j.appender.LOGFILE.MaxBackupIndex=5 - Locate the log4j.appender.PERFLOG.MaxBackupIndex parameter below this entry:
log4j.appender.PERFLOG.File=${catalina.base}/logs/vmware-identity-sts-perf.log
- Change the value of parameter to 3.
For example:
log4j.appender.PERFLOG.MaxBackupIndex=3
- Run this command to restart the STS service:
service vmware-stsd restart
- Navigate to:
cd /storage/log/vmware/sso/
- Remove the old localhost_access_log,vmware-identity-sts, and vmware-identity-sts-perf log files by running these commands:
rm localhost_access_log.*
rm vmware-identity-sts.*
rm vmware-identity-sts-perf.*