Collects event log entries that have the source MicrosoftDynamicsNAVClientWebClient, a level of warning or error, a message that contains the and a message that contains the web server instance name, the text 'Error accessing Website ' and 'URL: '
An event log error or warning was generated during execution.
There are various conditions that can cause this error or warning. See the event log for details.
Investigate event log entries by the Microsoft Dynamics NAV Web Server components on the computer running IIS.
Target | Microsoft.Dynamics.Nav.2015.WebServerInstance |
Category | EventCollection |
Enabled | True |
Alert Generate | False |
Remotable | True |
Event Log | Application |
ID | Module Type | TypeId | RunAs |
---|---|---|---|
DS | DataSource | Microsoft.Windows.EventProvider | Microsoft.Dynamics.Nav.2015.DefaultAccount |
CollectToDB | WriteAction | Microsoft.SystemCenter.CollectEvent | Default |
CollectToDW | WriteAction | Microsoft.SystemCenter.DataWarehouse.PublishEventData | Default |
<Rule ID="Microsoft.Dynamics.Nav.2015.WebServerInstanceEventCollectionRule" Target="Microsoft.Dynamics.Nav.2015.WebServerInstance" Enabled="true" ConfirmDelivery="false" Remotable="true" Priority="Normal" DiscardLevel="100">
<Category>EventCollection</Category>
<DataSources>
<DataSource ID="DS" TypeID="Windows!Microsoft.Windows.EventProvider" RunAs="Microsoft.Dynamics.Nav.2015.DefaultAccount">
<ComputerName>$Target/Host/Property[Type="Windows!Microsoft.Windows.Computer"]/NetworkName$</ComputerName>
<LogName>Application</LogName>
<Expression>
<And>
<Expression>
<Or>
<!-- Eventlog errors -->
<Expression>
<SimpleExpression>
<ValueExpression>
<XPathQuery Type="Integer">EventLevel</XPathQuery>
</ValueExpression>
<Operator>Equal</Operator>
<ValueExpression>
<Value Type="Integer">1</Value>
</ValueExpression>
</SimpleExpression>
</Expression>
<!-- Eventlog warnings -->
<Expression>
<SimpleExpression>
<ValueExpression>
<XPathQuery Type="Integer">EventLevel</XPathQuery>
</ValueExpression>
<Operator>Equal</Operator>
<ValueExpression>
<Value Type="Integer">2</Value>
</ValueExpression>
</SimpleExpression>
</Expression>
</Or>
</Expression>
<Expression>
<SimpleExpression>
<ValueExpression>
<XPathQuery Type="String">EventSourceName</XPathQuery>
</ValueExpression>
<Operator>Equal</Operator>
<ValueExpression>
<Value Type="String">MicrosoftDynamicsNAVClientWebClient</Value>
</ValueExpression>
</SimpleExpression>
</Expression>
<Expression>
<RegExExpression>
<ValueExpression>
<XPathQuery>EventDescription</XPathQuery>
</ValueExpression>
<Operator>ContainsSubstring</Operator>
<Pattern>$Target/Property[Type="Microsoft.Dynamics.Nav.2015.WebServerInstance"]/WebServerInstance$</Pattern>
</RegExExpression>
</Expression>
</And>
</Expression>
</DataSource>
</DataSources>
<WriteActions>
<WriteAction ID="CollectToDB" TypeID="SC!Microsoft.SystemCenter.CollectEvent"/>
<WriteAction ID="CollectToDW" TypeID="SCDW!Microsoft.SystemCenter.DataWarehouse.PublishEventData"/>
</WriteActions>
</Rule>