GUI is a great tool but sometimes it simply does not work. The usual way to get logs is:
- Login to vCenter.
- Under Inventory Lists, select vCenter Servers.
- Click the vCenter Server that contains the ESX/ESXi hosts from which you want to export logs.
- Click the Monitor tab and click System Logs.
- Click Export System Logs.
- Select the ESX/ESXi hosts from which you want to export logs.
- Select the Include vCenter Server and vSphere Web Client logs option. This step is optional.
- Click Next.
- Select the system logs that are to be exported.
- Select Gather performance data to include performance data information in the log files.
Note: You can update the duration and interval time between which you want to collect the data.
- Click Next.
- Click Generate Log Bundle. The Download Log Bundles dialog appears when the Generating Diagnostic Bundle task completes.
- Click Download Log Bundle to save it to your local computer.
Note: The host or vCenter Server generates .zip bundles containing the log files. The Recent Tasks panel shows the Generate diagnostic bundles task in progress.
- After the download completes, click Finish or generate another log bundle.
But what if logs generation is taking too long or simply do not work?
Here are steps to get logs the “smart way”:
- Open a console session to the vCenter Server Appliance.
- Log in as an administrative user, such as root.
- Type shell and press Enter.
- Run this command to export the logs to /storage/log/:
- Open a web browser and navigate to https://vCenter_server_FQDN:443/appliance/support-bundle
- When prompted enter the root credentials and click Enter.
NOTE: The download will begin automatically as vm-support.tgz.
Here is a video for step-by-step guide: