WWW 服务配置 HTTP 控制通道的日志属性失败

Microsoft.Windows.InternetInformationServices.10.0.WWW.service.failed.to.configure.the.logging.properties.for.the.HTTP.control.channel (Rule)

Knowledge Base article:

摘要

可以为站点日志记录、集中二进制日志记录或集中 W3C 日志记录配置 Internet Information Services (IIS) Web 服务器。在集中 W3C 日志记录中,所有站点的所有客户端请求都以 W3C 集中格式记录在服务器上的单个日志文件中。集中二进制日志记录也将所有站点集中记录到单个文件,但以集中二进制格式进行记录。在站点日志记录中,所有客户端请求都记录在站点级别,而非在服务器级别集中记录。这些日志记录类型取决于针对其配置的 World Wide Web 发布服务。

解决方法

停止并重新启动 W3SVC

若要停止并重新启动 World Wide Web 发布服务,请执行以下操作:

Element properties:

TargetMicrosoft.Windows.InternetInformationServices.10.0.WebServer
CategoryAlert
EnabledTrue
Event_ID1062
Event SourceMicrosoft-Windows-IIS-W3SVC
Alert GenerateFalse
RemotableTrue
Event LogSystem

Member Modules:

ID Module Type TypeId RunAs 
DS DataSource Microsoft.Windows.EventProvider Default
WA WriteAction Microsoft.Windows.Server.IIS.10.0.GenerateAlertAction.SuppressedByDescription Default

Source Code:

<Rule ID="Microsoft.Windows.InternetInformationServices.10.0.WWW.service.failed.to.configure.the.logging.properties.for.the.HTTP.control.channel" Enabled="true" Target="Microsoft.Windows.InternetInformationServices.10.0.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.10.0.GenerateAlertAction.SuppressedByDescription">
<Priority>1</Priority>
<Severity>1</Severity>
<AlertMessageId>$MPElement[Name="Microsoft.Windows.InternetInformationServices.10.0.WWW.service.failed.to.configure.the.logging.properties.for.the.HTTP.control.channel.AlertMessage"]$</AlertMessageId>
</WriteAction>
</WriteActions>
</Rule>