Objective 6.1 - Configure vCenter Log Behavior Print E-mail
Written by Matthijs van den Berg   
Thursday, 02 April 2009 11:48

KNOWLEDGE

 

  • Identify location of VirtualCenter related log files
    Read all about log files (also the ones created during install) here: http://www.vmwarewolf.com/
    • VMware Virtual Center Server
      The logfiles for VMware vCenter can be found in the directory:
    • %AllUsersProfile%\Application Data\VMware\VMware VirtualCenter\Logs
      on the vCenter server. There are a couple of files in this directory. The Profiler and Scoreboard are Apache related montoring tools listing processes and time required to complete them. The vpxd-#.log files are the actual vCenter Server log files. The log files rotate. A new file is created / overwritten when the service starts or when the file reaches 5 MB in size.
    • FLEXnet Licensing server
      The FLEXnet Licensing logs on the server it is installed on, usually the vCenter server, in the file:
    • C:\WINDOWS\Temp\lmgrd.log
    • VMware vCenter Client
      Logging for the vCenter Client is done in the file:
    • C:\Users\Matthijs\AppData\Local\VMware\vpx
      This is in my profile using Vista. The logfiles are, like on the vCenter server, followed by a number for log file rotation.
  • Describe options for customizing VirtualCenter log behavior
    You can change the vCenter logging detail via the vCenter Client (described below). There are several logging details you can choose from, starting with none up to Trivia. This last option logs just about anything. 
  • Describe options for customizing VI Client log behavior
    You can change some settings like the number of log files in the settingsfile on the client. Read below where to find the file..
  • Explain default log file characteristics
    All log files hold at least the data-time and logging information part. Change is variable depending on the log file level.
  • Understand log file collection methods
    You can look trough the log files manually or use 3th party tools to collect and analyse the logfiles.

 

SKILLS AND ABILITIES

  • Modify VirtualCenter Server log configuration
    • Changing the vCenter log directories (more info: http://www.yellow-bricks.com/)
      You can change the log directories for the vpxd files by editing the file:
    • %AllUsersProfile%\Application Data\VMware\VMware VirtualCenter\vpxd.cfg
      Add the following just above the </config> tag:
      <log>
      <directory>c:\vCenterLogs</directory>
      </log>
    • Change the logging detail
      • Go to the Virtual Center Client
      • Select “Administration”
      • Select “VirtualCenter Management Server Configuration”
      • Adjust the logging detail to your needs:
        vc_logging
    • Modify VirtualCenter Agent log configuration
      You can change some settings for the vCenter Client logging in the settingsfile: 
      C:\Users\Matthijs\AppData\Local\VMware\vpx \viclient-index.xml
  • Export VirtualCenter logs
    You can use syslog to export log files to a server.
    To setup the ESX server to log events on a remote syslog server:
    • In the /etc/syslog.conf file add the line
      *.*    @0.0.0.0 
       (change the ip number to your syslog servers ip)
    • Restart the syslog service with the command "service syslog restart"
    • Configure the firewall with esxcfg-firewall -o 514,udp,out,syslog in the command line
    • Restart the firewall service with esxcfg-firewall –l

 

TOOLS


  • VI client
  • CLI