您可設定 Internet Information Services (IIS) Web 伺服器使其進行站台記錄、集中式二進位記錄或集中式 W3C 記錄。在集中式 W3C 記錄中,系統會將所有站台的所有用戶端要求記錄以 W3C 集中式格式記錄到伺服器上的一個記錄檔中。集中式二進位記錄功能也會將所有站台集中記錄到一個檔案中,不過是使用集中式二進位格式。在站台記錄中,會以站台層級記錄所有的用戶端要求,而不會集中在伺服器層級。這些記錄類型都相依於 World Wide Web Publishing 服務來獲得其組態。
停止和重新啟動 W3SVC
停止和重新啟動 World Wide Web Publishing 服務:
開啟提高權限的 [命令提示字元] 視窗。按一下 [開始],將滑鼠游標指向 [所有程式],按一下 [附屬應用程式],對 [命令提示字元] 按滑鼠右鍵,然後按一下 [以系統管理員身分執行]。
在命令提示字元中輸入 net stop w3svc。
在命令提示字元中輸入 net start w3svc。
Target | Microsoft.Windows.InternetInformationServices.6.2.WebServer |
Category | Alert |
Enabled | True |
Event Source | Microsoft-Windows-IIS-W3SVC |
Alert Generate | False |
Remotable | True |
Event Log | System |
ID | Module Type | TypeId | RunAs |
---|---|---|---|
DS | DataSource | Microsoft.Windows.EventProvider | Default |
WA | WriteAction | Microsoft.Windows.Server.IIS.6.2.GenerateAlertAction.SuppressedByDescription | Default |
<Rule ID="Microsoft.Windows.InternetInformationServices.6.2.WWW.service.failed.to.configure.the.centralized.W3C.logging.properties" Enabled="onEssentialMonitoring" Target="Microsoft.Windows.InternetInformationServices.6.2.WebServer" ConfirmDelivery="false" Remotable="true" Priority="Normal" DiscardLevel="100">
<Category>Alert</Category>
<DataSources>
<DataSource ID="DS" TypeID="Windows!Microsoft.Windows.EventProvider">
<ComputerName>$Target/Host/Host/Property[Type="Windows!Microsoft.Windows.Computer"]/NetworkName$</ComputerName>
<LogName>System</LogName>
<Expression>
<And>
<Expression>
<SimpleExpression>
<ValueExpression>
<XPathQuery Type="String">PublisherName</XPathQuery>
</ValueExpression>
<Operator>Equal</Operator>
<ValueExpression>
<Value Type="String">Microsoft-Windows-IIS-W3SVC</Value>
</ValueExpression>
</SimpleExpression>
</Expression>
<Expression>
<RegExExpression>
<ValueExpression>
<XPathQuery>EventDisplayNumber</XPathQuery>
</ValueExpression>
<Operator>MatchesRegularExpression</Operator>
<Pattern>^(1135|1134)$</Pattern>
</RegExExpression>
</Expression>
</And>
</Expression>
</DataSource>
</DataSources>
<WriteActions>
<WriteAction ID="WA" TypeID="Microsoft.Windows.Server.IIS.6.2.GenerateAlertAction.SuppressedByDescription">
<Priority>1</Priority>
<Severity>1</Severity>
<AlertMessageId>$MPElement[Name="Microsoft.Windows.InternetInformationServices.6.2.WWW.service.failed.to.configure.the.centralized.W3C.logging.properties.AlertMessage"]$</AlertMessageId>
</WriteAction>
</WriteActions>
</Rule>