I saw several question from beginners about viewing an ESXi logs. In general you don’t need to know commands or where logs are located in system, it’s enough to connect directly to ESX/ESXi server by vSphere client, click HOME, system logs
and from drop-down menu choose which log you wanna view