VM: vm-8.log-retention

Information

Virtual machines must limit the number of retained diagnostic logs. By restricting the quantity of retained diagnostic logs, we can avoid filling up the datastore without compromising diagnostic functionality.

Solution

Get-VM -Name $VM | Get-AdvancedSetting -Name log.keepOld | Remove-AdvancedSetting

See Also

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