可以为站点日志记录、集中二进制日志记录或集中 W3C 日志记录配置 Internet Information Services (IIS) Web 服务器。在集中 W3C 日志记录中,所有站点的所有客户端请求都以 W3C 集中格式记录在服务器上的单个日志文件中。集中二进制日志记录也将所有站点集中记录到单个文件,但以集中二进制格式进行记录。在站点日志记录中,所有客户端请求都记录在站点级别,而非在服务器级别集中记录。这些日志记录类型取决于针对其配置的 World Wide Web 发布服务。
停止并重新启动 W3SVC
若要停止并重新启动 World Wide Web 发布服务,请执行以下操作:
打开提升的命令提示符窗口。单击“开始”,指向“所有程序”,再单击“附件”,右键单击“命令提示符”,然后单击“以管理员身份运行”。
在命令提示符中,键入 net stop w3svc。
在命令提示符中,键入 net start w3svc。
Target | Microsoft.Windows.InternetInformationServices.6.2.WebServer |
Category | Alert |
Enabled | True |
Event_ID | 1062 |
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.logging.properties.for.the.HTTP.control.channel" Enabled="true" 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>
<SimpleExpression>
<ValueExpression>
<XPathQuery>EventDisplayNumber</XPathQuery>
</ValueExpression>
<Operator>Equal</Operator>
<ValueExpression>
<Value>1062</Value>
</ValueExpression>
</SimpleExpression>
</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.logging.properties.for.the.HTTP.control.channel.AlertMessage"]$</AlertMessageId>
</WriteAction>
</WriteActions>
</Rule>