Enabling debug logging for the vCenter Inventory Service in vCenter Server 6.0
search cancel

Enabling debug logging for the vCenter Inventory Service in vCenter Server 6.0

book

Article ID: 320123

calendar_today

Updated On:

Products

VMware vCenter Server

Issue/Introduction

This article provides steps to enable debug logging for the vCenter Inventory Service in vCenter Server 6.0.

Environment

VMware vCenter Server 6.0.x

Resolution

To enable debug logging for the vCenter Inventory Service in vCenter Server 6.0:
  1. Stop the vCenter Inventory Server service. For more information, see Stopping, starting, or restarting VMware vCenter Server 6.0 services (2109881).
  2. 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.
     
  3. 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

     
  4. Save and close the file.
  5. 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:
  1. Open the log4j.properties file using a text editor.
  2. Locate the log4j.appender.LOGFILE.MaxBackupIndex=50 parameter.
  3. Set the parameter to a required value.
  4. Save and close the file.
To modify the size of each log file that are retained:
  1. Open the log4j.properties file using a text editor.
  2. Locate the log4j.appender.LOGFILE.MaxFileSize=5MB parameter
  3. Set the parameter to a required value.
  4. Save and close the file.
Note: Ensure to restart the vCenter inventory Service for the changes to take effect.


Additional Information

The acceptable parameters for logging levels in the order of increasing verbosity are, ERROR, WARN, INFO, DEBUG, TRIVIA.
How to stop, start, or restart vCenter Server 6.x services
为 vCenter Server 6.0 中的 vCenter Inventory Service 启用调试日志记录
vCenter Server 6.0 での vCenter Inventory Service に対するデバッグ ログの有効化