インターネット インフォメーション サービス (IIS) Web サーバーは、サイト ログ、バイナリ集中ログ、W3C 集中ログを構成できます。W3C 集中ログでは、すべてのサイトのすべてのクライアント要求は、サーバー上の 1 つのログ ファイルに集中 W3C 形式で記録されます。バイナリ集中ログにも、すべてのサイトが 1 つのファイルにまとめて記録されますが、集中バイナリ形式で記録されます。サイト ログでは、すべてのクライアント要求は、サーバー レベルで集中的に記録されるのではなく、サイト レベルで記録されます。これらの種類のログの構成は、World Wide Web 発行サービスに依存します。
集中ログ形式を構成する
バイナリ集中ログと W3C 集中ログの両方が有効になっています。一度に有効にできるログの種類は 1 つだけなので、システムによって既定の W3C 集中ログに設定されました。次の手順に従って、W3C ログまたはバイナリ ログを構成します。
注: バイナリ ログを使用する場合は、この手順を実行する必要があります。
IIS マネージャーを使用して集中ログを構成するには:
[スタート] ボタンをクリックし、[コントロール パネル] をクリックして、[管理ツール] をクリックします。
[インターネット インフォメーション サービス (IIS) マネージャー] を右クリックし、[管理者として実行] を選択します。
IIS マネージャーの [接続] ウィンドウで、構成する集中ログを構成する Web サーバーを選択します。
[機能ビュー] で、[ログ記録] をダブルクリックします。
[ログ機能] ウィンドウの [ログ ファイル作成単位:] の下で、[サーバー] が選択されていることを確認します。
[ログ ファイルの形式:] で、[W3C] または [バイナリ] を選択します。
[操作] ウィンドウで、[適用] をクリックします。
Target | Microsoft.Windows.InternetInformationServices.6.2.WebServer |
Category | Alert |
Enabled | True |
Event_ID | 1133 |
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.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>