WAS encountered an error attempting to configure centralized logging

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

Knowledge Base article:

Summary

The Internet Information Services (IIS) Windows Process Activation Service (WAS) configuration manager manages configuration for the application pools and protocol adapters that it maintains. If WAS encounters problems when it reads configuration or reacts to configuration change notifications, configuration changes for the entities it manages may not be processed.

Resolutions

Correct central logging

To correct the central logging configuration, use IIS Manager, then stop and restart the W3SVC to reapply the configuration. If you are not sure which configuration values to use, use the default logging values for IIS that can be found in the <sectionSchema name="system.applicationHost/log"> section of the %SystemDrive%\Windows\System32\inetsrv\config\schema \IIS_Schema.xml file.

View the default IIS logging values

To view the default IIS logging values by using notepad:

Configure central logging by using IIS Manager

To configure central logging by using IIS Manager:

Stop and restart the W3SVC

To stop and restart the W3SVC:

Element properties:

TargetMicrosoft.Windows.InternetInformationServices.2008.WebServer
CategoryAlert
EnabledTrue
Event_ID5066
Event SourceMicrosoft-Windows-WAS
Alert GenerateTrue
Alert SeverityError
Alert PriorityNormal
RemotableTrue
Alert Message
WAS encountered an error attempting to configure centralized logging
{0}
Event LogSystem

Member Modules:

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

Source Code:

<Rule ID="Microsoft.Windows.InternetInformationServices.2008.WAS.encountered.an.error.attempting.to.configure.centralized.logging" Enabled="onEssentialMonitoring" Target="Microsoft.Windows.InternetInformationServices.2008.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.2008.GenerateAlertAction.SuppressedByDescription">
<Priority>1</Priority>
<Severity>2</Severity>
<AlertMessageId>$MPElement[Name="Microsoft.Windows.InternetInformationServices.2008.WAS.encountered.an.error.attempting.to.configure.centralized.logging.AlertMessage"]$</AlertMessageId>
</WriteAction>
</WriteActions>
</Rule>