SV-256408r958752_rule
V-256408
SRG-OS-000341-VMM-001220
ESXI-70-000045
CAT II
10
From the vSphere Client, go to Hosts and Clusters.
Select the ESXi Host >> Configure >> System >> Advanced System Settings.
Click "Edit". Select the "Syslog.global.logDir" value and set it to a known persistent location.
An example is shown below, where 51dda02d-fade5016-8a08-005056171889 is the UUID of the target datastore:
/vmfs/volumes/51dda02d-fade5016-8a08-005056171889
or
From a PowerCLI command prompt while connected to the ESXi host, run the following command:
Get-VMHost | Get-AdvancedSetting -Name Syslog.global.logDir | Set-AdvancedSetting -Value "New Log Location"
From the vSphere Client, go to Hosts and Clusters.
Select the ESXi Host >> Configure >> System >> Advanced System Settings.
Select the "Syslog.global.logDir" value and verify it is set to a persistent location.
If the value of the setting is "[] /scratch/logs", verify the advanced setting "ScratchConfig.CurrentScratchLocation" is not set to "/tmp/scratch". This is a nonpersistent location.
If "Syslog.global.logDir" is not configured to a persistent location, this is a finding.
or
From a PowerCLI command prompt while connected to the ESXi host, run the following commands:
$esxcli = Get-EsxCli -v2
$esxcli.system.syslog.config.get.Invoke() | Select LocalLogOutput,LocalLogOutputIsPersistent
If the "LocalLogOutputIsPersistent" value is not true, this is a finding.
V-256408
False
ESXI-70-000045
From the vSphere Client, go to Hosts and Clusters.
Select the ESXi Host >> Configure >> System >> Advanced System Settings.
Select the "Syslog.global.logDir" value and verify it is set to a persistent location.
If the value of the setting is "[] /scratch/logs", verify the advanced setting "ScratchConfig.CurrentScratchLocation" is not set to "/tmp/scratch". This is a nonpersistent location.
If "Syslog.global.logDir" is not configured to a persistent location, this is a finding.
or
From a PowerCLI command prompt while connected to the ESXi host, run the following commands:
$esxcli = Get-EsxCli -v2
$esxcli.system.syslog.config.get.Invoke() | Select LocalLogOutput,LocalLogOutputIsPersistent
If the "LocalLogOutputIsPersistent" value is not true, this is a finding.
M
5518