TMAegisBeta
iis için daha fazla kural

Microsoft IIS

TMA-IIS-5.3

Ensure 'ETW Logging' is enabled

OrtaDüzey 1Otomatikiis

Açıklama

Event Tracing for Windows (ETW) is a Windows feature that allows Administrators to send logging information to another location. This information is then compiled on the server and can be queried. siteDefaults logFile logTargetW3C must include ETW (File,ETW = both log file and ETW event). PowerShell 5.1 with the WebAdministration module; run elevated. CIS marks this recommendation Manual; the automated check implements its audit procedure.

Nasıl denetlenir

Denetim yöntemi: Kabuk komutu

shell
Import-Module WebAdministration -ErrorAction Stop; $c = Get-WebConfiguration -Filter 'system.applicationHost/sites/siteDefaults/logFile' -PSPath 'MACHINE/WEBROOT/APPHOST'; if ([string]$c.logTargetW3C -match 'ETW') { 'compliant' } else { 'noncompliant' }
Beklenen çıktı
compliant

Nasıl düzeltilir

Düzeltme yöntemi: Kılavuz veya altyapı yaması

Set-WebConfigurationProperty -PSPath 'MACHINE/WEBROOT/APPHOST' -Filter system.applicationHost/sites/siteDefaults/logFile -Name logTargetW3C -Value 'File,ETW'

Özellikler

İşletim sistemleri
Herhangi biri
Etiketler
iislogging
Referans
CIS Microsoft IIS 10 Benchmark v1.2.1 - 5.3 Ensure 'ETW Logging' is enabled

Bu ana makineyi denetle

Bunu denetleme izniniz olan bir makinede çalıştırın. Tarama salt okunurdur.

shell
tmaegis scan --target iis