3.3 Configure persistent logging for all ESXi host

Information


http://pubs.vmware.com/vsphere-51/topic/com.vmware.vsphere.install.doc/GUID-9F67DB52-F469-451F-B6C8-DAE8D95976E7.html

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: 1399072d03d52ea154dd43c845f7cb12e8b29c2728b6abd33eabc7cb92a79da5