ESXi: esxi-8.logs-filter

Information

The ESXi host must not enable log filtering. You can create log filters to reduce the number of repetitive entries, and to deny specific log events entirely.

Solution

$ESXcli = Get-EsxCli -VMHost $ESXi -V2
$arguments = $esxcli.system.syslog.config.logfilter.set.CreateArgs()
$arguments.logfilteringenabled = $false
$ESXcli.system.syslog.config.logfilter.set.invoke($arguments)

See Also

https://github.com/vmware/vcf-security-and-compliance-guidelines/raw/refs/heads/main/security-configuration-hardening-guide/vsphere/8.0/