To enable debug logging for the vCenter Inventory Service in vCenter Server 6.0:
- Stop the vCenter Inventory Server service. For more information, see Stopping, starting, or restarting VMware vCenter Server 6.0 services (2109881).
- Open the log4j.properties file using a text editor. The log4j.properties file is located at:
vCenter Server: %PROGRAMFILES%\VMware\vCenter Server\invsvc\lib\server\config\log4j.properties.
vCenter Server Appliance: /usr/lib/vmware-invsvc/lib/server/config/log4j.properties.
Note: Take a backup of the log4j.properties file before proceeding.
- Modify these values by replacing the default INFO value with DEBUG :
log4j.logger.com.vmware.vim=INFO
log4j.appender.LOGFILE.Threshold=INFO
log4j.logger.com.vmware.cis=INFO
log4j.appender.DS.Threshold=INFO
log4j.logger.com.vmware.vim.query.server.store.impl.QueryPerfLogger=INFO
log4j.appender.AUTHZEVENT.Threshold= INFO
- Save and close the file.
- Start the vCenter Inventory Service service. For more information, see Stopping, starting, or restarting VMware vCenter Server 6.0 services (2109881).
Optional parameters
In vCenter Server 6.0, the Inventory Service consists of a number of logs.
By default, 50 log files retained, each with a size of 5 MB. In some cases, you may require to modify the number or size of the log files that are retained.
To modify the number of log files to be retained:
- Open the log4j.properties file using a text editor.
- Locate the log4j.appender.LOGFILE.MaxBackupIndex=50 parameter.
- Set the parameter to a required value.
- Save and close the file.
To modify the size of each log file that are retained:
- Open the log4j.properties file using a text editor.
- Locate the log4j.appender.LOGFILE.MaxFileSize=5MB parameter
- Set the parameter to a required value.
- Save and close the file.
Note: Ensure to restart the vCenter inventory Service for the changes to take effect.