Logs
Methods of accessing logs you need
vSphere Logs
The main logs you will need to look at are
- DHCP issues: /var/log/dhclient.log
- Network driver/device issues: /var/log/hostd.log & vmkernel.log
- vCenter issues: /var/log/vpxa.log
When problems occur in your virtual environment, you need to know where to look for clues to the cause and what to do to resolve them. Often, just trying to figure out the exact cause is the most difficult part, because virtual servers are more complicated than physical servers and there are more potential causes of problems. When you know where to look to find the cause of a problem, the process becomes a lot easier.
Note: By default, VMware ESXi logs do not persist upon a reboot. If a VMware ESXi host experiences an abrupt reboot due to reasons other than a VMkernel error, the logs do not persist and you do not have access to the logs prior to the reboot to determine the cause
Note: Many logfiles are time stamped using UTC – if you’re host isn’t configured to use UTC this may make correlating events and logs difficult
Types of Searches
The following types of server log entries are generated:
How to search through logs
grep is a unix command that allows you to search for a pattern in a list of files
Many times you need to view a constantly updating file. This is a common case with logs. People usually think that tail command is only used to view the last parts of a file, but it even provides you with the ability to view growing/changing files.
Please note that, by growing I mean files to whom data is being appended constantly. Using the -f option, tail lets us view the data that is being added to the file in real time.
Useful Links
http://www.vmworld.com/docs/DOC-3765
http://media.techtarget.com/searchServerVirtualization/downloads/0137008589_CH10.pdf
Scrolling through logs using DCUI
http://blogs.vmware.com/vsphere/2012/06/viewing-esxi-logs-from-the-dcui.html