WAS påträffade ett fel vid försök att konfigurera centraliserad loggning

Microsoft.Windows.InternetInformationServices.6.2.WAS.encountered.an.error.attempting.to.configure.centralized.logging (Rule)

Knowledge Base article:

Sammanfattning

Internet Information Services (IIS) Windows Process Activation Service (WAS) Configuration Manager hanterar konfiguration av programpoolerna och protokolladaptrar som den upprätthåller. Om WAS får problem när den läser av konfiguration eller reagerar på konfigureringsändringsindikatorer, konfigurationsändringar för de enheter som den förvaltar får inte behandlas.

Lösningar

Korrigera central loggning

Om du vill korrigera den centrala loggningskonfigurationen använder du IIS Manager. Stoppa sedan och starta om W3SVC-tjänsten för att tillämpa konfigurationen på nytt. Om du inte är säker på vilka konfigurationsvärden som ska användas, använder du de standardloggningsvärden för IIS som finns i avsnittet <sectionSchema name=”system.applicationHost/log”> i filen %SystemDrive%\Windows\System32\inetsrv\config\schema \IIS_Schema.xml.

Visa IIS-standardvärden för loggning.

Så här visar du IIS-standardvärdena för loggning med hjälp av Anteckningar:

Konfigurera central loggning med hjälp av IIS-hanteraren

Så här konfigurerar du central loggning med hjälp av IIS-hanteraren:

Stoppa och starta om W3SVC

Så här stoppar du och startar om W3SVC:

Element properties:

TargetMicrosoft.Windows.InternetInformationServices.6.2.WebServer
CategoryAlert
EnabledTrue
Event_ID5066
Event SourceMicrosoft-Windows-WAS
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.WAS.encountered.an.error.attempting.to.configure.centralized.logging" 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-WAS</Value>
</ValueExpression>
</SimpleExpression>
</Expression>
<Expression>
<SimpleExpression>
<ValueExpression>
<XPathQuery>EventDisplayNumber</XPathQuery>
</ValueExpression>
<Operator>Equal</Operator>
<ValueExpression>
<Value>5066</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>2</Severity>
<AlertMessageId>$MPElement[Name="Microsoft.Windows.InternetInformationServices.6.2.WAS.encountered.an.error.attempting.to.configure.centralized.logging.AlertMessage"]$</AlertMessageId>
</WriteAction>
</WriteActions>
</Rule>