Tuesday, May 21, 2019

VMware ESXi 6.7 - System logs on host are stored on non-persistent storage

When trying to apply the recommendation in the KB article (https://kb.vmware.com/s/article/2032823? )via the web client  we received the following error:


"Update option values failed!" "A specified parameter was not correct:"

To work around this issue we log into the esxi host via ssh and issue the following commands:

esxcli system syslog config get

#This dumps the current host config

We are interested in changing "Local Log Output"

Now browse to the DIR where you wish to have the logs stored. Copy the entire path and use in the command below to set the dir.

If it is shared storage, it is best to create a subdir for the host e.g. /vmfs/volumes/storagepool1/logs/esxihost1


Set the syslog like so:

esxcli system syslog config set --logdir=/vmfs/volumes/storagepool1/logs/esxihost1

Go back to your web client and confirm the setting has updated, you can also run "esxcli system  syslog config get" to confirm the settings have taken effect.