Learn to configure the directory where system logs will be saved. This will allow you to have persistent storage for your logs, and avoid the warning message about the logs not being saved to persistent storage. If you do not configure persistent storage for your logs, they will be reset every time the host reboots, making it hard to troubleshoot problems.
Steps to configure the syslog path on VMWare ESXi hosts
First you need the datastore name on which you want to store logs. You can use local datastores, or shared storage. Some people will configure a dedicated machine with an NFS share for logs when they have larger installations. Take into consideration your needs and plan accordingly.
- Select your host and go to the configuration tab
- click the “advanced settings” option
- Click the syslog category and locate the option syslog.global.logDir
- Fill out the text box in the following format then press OK
The format I like to use to keep things well organized, especially on shared storage, is to either organize everything in one folder called “logs” and sub-folders for each host. Or in the case of local storage (which is the case for the video example) a folder named after the host, and a sub-folder for the logs. I will also use this host folder to store things like .vib files that need to be installed.
The advantages of using shared NFS storage for logs is you can neatly gather all your logs in one place, and not have your log storage filesystem be formatted in VMFS, so you can easily access your logs when needed.