3.3 Configure persistent logging for all ESXi host

Information

http://kb.vmware.com/kb/1033696

Solution

Perform the following-1. Logon to the ESXi shell.
2. Run 'ls -al /' to verify/scratch is not linked to/tmp/scratch.
3. If/scratch is linked to/tmp/scratch change it to a persistent datastore.
4. Identify the datastore path where you want to place scratch.
5. Login to the vSphere web client.
6. Navigating to the host.
7. Select 'Manage' -> 'Advanced System Settings'.
8. Enter Syslog.global.LogDir in the filter.
9. Set the Syslog.global.LogDir to the desired datastore path.Alternatively, run the following PowerCLI command-# Set Syslog.global.logDir for each host
Get-VMHost | Foreach { Set-VMHostAdvancedConfiguration -VMHost $_ -Name Syslog.global.logDir -Value '<NewLocation>' }

Note- the Syslog.global.LogDir must be set for each host. The host syslog parameters can also be configured using the vCLI or PowerCLI, or using an API client.

Impact-Additional disk space will be required to store log files.

Default Value-When booting from a local disk- YESWhen booting from USB/SD- NOWhen using Auto Deploy Stateless Installs- NO

See Also

https://workbench.cisecurity.org/files/902

Item Details

Category: AUDIT AND ACCOUNTABILITY

References: 800-53|AU-12

Plugin: VMware

Control ID: f1446c1bd63936d9f9aa57f66d0d7975894b9100afb774c2c8b5596fa67f1282