一度に有効にすることができるログは 1 種類だけです

Microsoft.Windows.InternetInformationServices.6.2.Only.one.type.of.logging.can.be.enabled.at.a.time (Rule)

Knowledge Base article:

概要

インターネット インフォメーション サービス (IIS) Web サーバーは、サイト ログ、バイナリ集中ログ、W3C 集中ログを構成できます。W3C 集中ログでは、すべてのサイトのすべてのクライアント要求は、サーバー上の 1 つのログ ファイルに集中 W3C 形式で記録されます。バイナリ集中ログにも、すべてのサイトが 1 つのファイルにまとめて記録されますが、集中バイナリ形式で記録されます。サイト ログでは、すべてのクライアント要求は、サーバー レベルで集中的に記録されるのではなく、サイト レベルで記録されます。これらの種類のログの構成は、World Wide Web 発行サービスに依存します。

解決方法

集中ログ形式を構成する

バイナリ集中ログと W3C 集中ログの両方が有効になっています。一度に有効にできるログの種類は 1 つだけなので、システムによって既定の W3C 集中ログに設定されました。次の手順に従って、W3C ログまたはバイナリ ログを構成します。

注:  バイナリ ログを使用する場合は、この手順を実行する必要があります。

IIS マネージャーを使用して集中ログを構成するには:

Element properties:

TargetMicrosoft.Windows.InternetInformationServices.6.2.WebServer
CategoryAlert
EnabledTrue
Event_ID1133
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.6.2.GenerateAlertAction.SuppressedByDescription Default

Source Code:

<Rule ID="Microsoft.Windows.InternetInformationServices.6.2.Only.one.type.of.logging.can.be.enabled.at.a.time" 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>1133</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.Only.one.type.of.logging.can.be.enabled.at.a.time.AlertMessage"]$</AlertMessageId>
</WriteAction>
</WriteActions>
</Rule>