With the lack of COS we are now unable to view the logs via SSH and be supported by VMware. So what other supported options do we have?
Plenty of options, I'll take you through them.
Using the ESXi Console
Using the ESXi Console (Yellow/Grey) you can login and view the Messages, Hostd and vpxa logs. If you press ALT + F12 you will be able to see the vmkernel log. Although, if I'm honest it's sometimes a little difficult to read them. The ESXi Console can be accessed either locally on the Host or via remote console access systems like ILO and DRAC.
Using a Web Browser
I found this on
techhead.co.uk but I will include the steps here to keep everything in one place.
Using a Syslog Server
ESXi gives you the option of configuring a remote syslog server to export all of your logs to. This is very important if you are using diskless setups. In a diskless setup the log files are held in an in-memory file system and if you reboot your ESXi Host you will loose of your log files. There are two ways to use syslogs to store your ESXi logs, you can either Export them to a syslog Server or use vMA to collect them.
To Export your logs, you can either configure your Host via the VIC or via vMA. The process is shown here:
VMware KB1016621 To collect your logs using vMA you need to use the vilogger function. Information on how to use vilogger can be found here:
vSphere Management Assistant Guide You can then use tail|more|less to view the logs as you would on an ESX Host.
Exporting System Logs in vCenter
You can Export your system logs whilst connect to vCenter using your VIC. The steps to do this can be found here:
Export Diagnostic Data If your downloading to a Windows Workstation you can use
Winrar to decompress the log files and then view them in either Notepad or any other log viewing software.
Exporting System Logs via the PowerCLI
If you're a PowerCLI user or would like to script the download of your ESXi logs you could use the basic script below.
Get-Log -VMHost <ESXi Host> -Bundle -DestinationPath C:\Tmp
You will also need Winrar to un-zip the bundle to be able to view the logs. There are ways you can actually view the logs via the powershell window, you can read more about that here on
Alan Renouf's post:
PowerCLI: Reading host log files