한 번에 하나의 로깅 형식만 사용할 수 있습니다.

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

Knowledge Base article:

요약

IIS(인터넷 정보 서비스) 웹 서버는 사이트 로깅, 중앙 이진 로깅 또는 중앙 W3C 로깅에 대해 구성할 수 있습니다. 중앙 W3C 로깅에서는 모든 사이트에 대한 모든 클라이언트 요청이 서버에 있는 W3C 중앙 형식의 단일 로그 파일에 로깅됩니다. 중앙 이진 로깅도 모든 사이트를 중앙의 단일 파일에 로깅하지만 중앙 이진 형식으로도 로깅합니다. 사이트 로깅에서는 모든 클라이언트 요청이 중앙의 서버 수준이 아닌 사이트 수준에서 로깅됩니다. 이러한 로깅 유형은 해당 구성의 World Wide Web Publishing 서비스에 따라 달라집니다.

해결 방법

중앙 로깅 형식 구성

중앙 이진 로깅 및 중앙 W3C 로깅은 모두 사용하도록 설정됩니다. 한 번에 하나의 로깅 유형만 사용하도록 설정할 수 있으므로 시스템은 기본적으로 중앙 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>