When exporting a system log bundle (vm-support) from a VMware ESXi host, the /var/run/logs directory within the extracted archive is found to be empty. The expected host log files are missing from the exported support bundle.
VMware ESXi (All supported versions)
VMware vCenter Server (All supported versions)
The Advanced System Setting Syslog.global.logDirUnique on the ESXi host is set to false, while Syslog.global.logDir is configured to route logs to a shared datastore. When the unique host subdirectory flag is disabled, the vm-support log collection utility fails to locate, isolate, and accurately map the remotely stored logs back into the /var/run/logs path of the generated support bundle.
Modify the Syslog.global.logDirUnique setting to true to ensure the ESXi host creates a host-specific subdirectory for its syslog data.
Log in to the vSphere Client using administrative credentials.
Navigate to Hosts and Clusters and select the affected ESXi host.
Select the Configure tab.
Under the System section, select Advanced System Settings.
Click Edit.
In the filter box, type Syslog.global.logDirUnique to locate the setting.
Modify the value from false to true.
Click OK to save the configuration.
Before making the above change on an ESXi host, place the host in Maintenance mode.
Configuring Syslog.global.logDirUnique to true is a best practice when configuring multiple ESXi hosts to send their logs to a centralized shared datastore. It prevents file lock contention, log overlapping, and ensures log collection tools function properly.