Q
Problem solve Get help with specific problems with your technologies, process and projects.

How do you use VMware ESXi logs to troubleshoot your host?

With access to logs, you can troubleshoot your ESXi host and track issues as they crop up. You can access your logs via the console or a web browser with only a few simple steps.

You can troubleshoot an ESXi host in a few different ways. The exact method depends on which version of ESXi you're...

trying to troubleshoot and if the host is part of the vCenter server or accessible remotely via Secure Shell. VMware doesn't recommend that you allow access via Secure Shell, so this guide will concentrate on using VMware ESXi logs with access via console or web browser. Therefore, this article won't include situations in which you completely lose connectivity to your ESXi host. In these cases, a hardware problem, such as a physical switch, network interface card or cable, could be the cause.

Access VMware ESXi logs via console

It's easy to troubleshoot ESXi via logs if you know where to look; this saves you the effort of looking at everything to locate the root cause of your problems.

In order to access VMware ESXi logs from the ESXi Direct Connect User Interface, you have to be in the server room, at the console itself. You might be able to access the server remotely via the Intelligent Platform Management Interface (IPMI), Dell Remote Access Card, Hewlett Packard Enterprise Integrated Lights Out or another hardware remote access system; if so, you can use any of these technologies to fire up the remote ESXi host's console.

At the console prompt, hit the F2 key, enter your root login and password, and click View System Logs. As its name suggests, this will pull up a list of available system logs, highlighted in Figure A. Choose the log you wish to view.

IPMI access panel
Figure A. You can use technologies like IPMI to access servers remotely and view system logs.

The log window that results isn't user-friendly. Press the Q and ESC keys to quit the log window and the current login session.

There are six different types of VMware ESXI logs: Syslog captures message from the VMkernel and other components. Vmkernel shows the uptime and availability statistics. You use Config when a host hangs or crashes or an authentication issue occurs. Management Agent (hostd) records which logs are specific to the host services that connect your vSphere client to your ESXi host. VirtualCenter Agent (vpxa) records additional logs that appear when vCenter connects to and manages your ESXi. Finally, VMware ESXi Observation log (vobd) tracks all changes to the configuration of your ESXi host and results.

Access VMware ESXi logs via web browser

You can access your host directly from a web browser, which is especially useful for older versions of ESXi that don't have the Host Client yet.

Put your host's IP address in the address section of the following URL to access the host: https://address/host. When you receive a prompt to log in, use the root username, and enter the root password. This will allow you to access a window from which you can download or view logs directly via your browser.

Newer releases of ESXi have the ESXi Host Client built in, which gives you access to the logs and makes browsing and troubleshooting more convenient.

In your web browser, go to the following URL, replacing "address" with the IP address of your ESXi host: https://address/ui.

Select and expand your host on the left-hand side of the screen, and then choose the Logs tab. The logs should appear in the lower pane. You can choose a log by selecting a specific line; in this case, we're looking for syslog.log. You also search for specific logs and log lines with the search mechanism highlighted in Figure B. Once you locate a log, right-click the line to copy and paste. You can also generate a support bundle for the log via the Actions button.

Search for logs in the VMware Host Client.
Figure B. Search for logs with the search mechanism in the VMware Host Client.

Depending on what you're looking for, it can be complex to troubleshoot ESXi. If your environment has central management via vCenter, there are built-in tools that can help. There are also other VMware products for monitoring and troubleshooting, usually available within the vSphere vCloud suite.

I suggest vRealize Operations Manager or vRealize Log Insight, which can ingest many gigabits of logs per day and provide synthetic graphics based on keywords or particular repetitive issues within your infrastructure.

Next Steps

Use enhanced logs to boost vSphere security

Learn the best metrics for monitoring ESXi storage performance

VRealize Operations Manager can monitor system health

Use logs to find out why your ESXi host has rebooted

This was last published in October 2017

Dig Deeper on Troubleshooting VMware products

Have a question for an expert?

Please add a title for your question

Get answers from a TechTarget expert on whatever's puzzling you.

You will be able to add details on the next page.

Join the conversation

1 comment

Send me notifications when other members comment.

By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy

Please create a username to comment.

Which tools do you use to track and troubleshoot?
Cancel

-ADS BY GOOGLE

SearchServerVirtualization

SearchVirtualDesktop

SearchDataCenter

SearchCloudComputing

Close