To verify the global log file location:
- Click the first host in the cluster and then click on the Configuration tab.
- Click the Advanced Settings link under Software.
- Expand Syslog > Global.
- Verify and ensure that the value in Syslog.global.logDir is not using the same location on a shared datastore to save the log files.
To modify the global log file location:
- Use the Datastore Browser to create sub directories for each host in the cluster in the current location.
- Edit the Syslog.global.logDir value to point to the newly created destination location.
Note: You may receive an error from the vSphere Client indicating that the changes are not saved and when you review the configuration, you may still see the old location. But, if you check the /etc/vmsyslog.conf file on the host, you can see that the changes are applied.
- Migrate all virtual machines from the affected host and reboot the host.
Note: Restarting Management services does not apply the changes.
- Repeat this procedure for all affected hosts.
- Disable and enable HA on the cluster.
Alternatively, you can modify the global log unique location per host from the command prompt:
- Log in to the ESXi host as root and run this command on each host:
esxcli system syslog config set --logdir-unique true
- Check if the vmsyslogd service is running using this command:
ps | grep vmsyslogd
8573 8573 vmsyslogd /bin/python
- If vmsyslogd is not running, start the service using this command:
/usr/lib/vmware/vmsyslog/bin/vmsyslogd
- If vmsyslogd is running, restart the service using this command:
esxcli system syslog reload