This article provides information on locating virtual machine log files on an ESXi host.
VMware vSphere ESXi
By default, ESXi hosts store virtual machine specific logging in the same directory as the virtual machine's configuration files. The default log file name is vmware.log.
For archival purposes, log files are named sequentially (e.g., vmware-1.log, vmware-2.log). When the vmware.log file is next archived, the existing vmware.log is renamed to the next available sequential number, and a new vmware.log file is created.
Virtual machine logs can be reconfigured to archive at different intervals, with different names, in different volumes, or when the log reaches a specific size. For more information, see Log rotation and logging options for vmware.log.
To identify the location of vmware.log files:
vim-cmd vmsvc/getallvms/vmfs/volumes/xxxxxxxx-xxxxxxx-c1d2-111122223333/vm1/vm1.vmx find /vmfs -name "*.vmx”
To identify the location of vmware.log files of all VMs, run the following command:
find /vmfs -name "vmware*.log"
For troubleshooting information, see Troubleshooting a virtual machine that has stopped responding.