You can enable logging to collect log files to help troubleshoot issues with your virtual machine.
Required privilege: Virtual machine.Configuration.Settings
In the vSphere Client inventory, right-click the virtual machine and select Edit Settings.
Click the Options tab and select AdvancedGeneral.
In the Settings pane, select Enable logging.
Click OK.