SSAS Event Log Collection Target Discovery

Microsoft.SQLServer.AnalysisServices.Windows.Discovery.EventLogCollectionTarget (Discovery)

This discovery rule discovers an event log collection target for a Microsoft SQL Server Analysis Services. This object is used to collect module errors from event log of computers that have SSAS components.

Knowledge Base article:

Summary

This discovery rule discovers an event log collection target for a Microsoft SQL Server 2017 Analysis Services. This object is used to collect module errors from event log of computers that have SSAS components.

Overridable Parameters

Name

Description

Default Value

Enabled

Enables or disables the workflow

Yes

Frequency (seconds)

The recurring interval of time in seconds in which to run the workflow.

14400

Element properties:

TargetMicrosoft.SQLServer.AnalysisServices.Windows.LocalSeed
EnabledTrue
Frequency14400
RemotableFalse

Object Discovery Details:

Discovered Classes and their attribuets:

Member Modules:

ID Module Type TypeId RunAs 
DS DataSource Microsoft.Windows.FilteredRegistryDiscoveryProvider Default

Source Code:

<Discovery ID="Microsoft.SQLServer.AnalysisServices.Windows.Discovery.EventLogCollectionTarget" Target="Microsoft.SQLServer.AnalysisServices.Windows.LocalSeed" Enabled="true" ConfirmDelivery="false" Remotable="true" Priority="Normal">
<Category>Discovery</Category>
<DiscoveryTypes>
<DiscoveryClass TypeID="Microsoft.SQLServer.AnalysisServices.Windows.EventLogCollectionTarget"/>
</DiscoveryTypes>
<DataSource ID="DS" TypeID="Windows!Microsoft.Windows.FilteredRegistryDiscoveryProvider">
<ComputerName>$Target/Host/Property[Type="Windows!Microsoft.Windows.Computer"]/PrincipalName$</ComputerName>
<RegistryAttributeDefinitions>
<RegistryAttributeDefinition>
<AttributeName>RealComputerName</AttributeName>
<Path>SYSTEM\CurrentControlSet\Control\ComputerName\ActiveComputerName\ComputerName</Path>
<PathType>1</PathType>
<AttributeType>1</AttributeType>
</RegistryAttributeDefinition>
</RegistryAttributeDefinitions>
<Frequency>14400</Frequency>
<ClassId>$MPElement[Name="Microsoft.SQLServer.AnalysisServices.Windows.EventLogCollectionTarget"]$</ClassId>
<InstanceSettings>
<Settings>
<Setting>
<Name>$MPElement[Name="Windows!Microsoft.Windows.Computer"]/PrincipalName$</Name>
<Value>$Target/Host/Property[Type="Windows!Microsoft.Windows.Computer"]/PrincipalName$</Value>
</Setting>
<Setting>
<Name>$MPElement[Name="System!System.Entity"]/DisplayName$</Name>
<Value>$Target/Host/Property[Type="Windows!Microsoft.Windows.Computer"]/PrincipalName$</Value>
</Setting>
</Settings>
</InstanceSettings>
<Expression>
<SimpleExpression>
<ValueExpression>
<XPathQuery Type="String">Values/RealComputerName</XPathQuery>
</ValueExpression>
<Operator>Equal</Operator>
<ValueExpression>
<Value Type="String">$Target/Host/Property[Type="Windows!Microsoft.Windows.Computer"]/NetbiosComputerName$</Value>
</ValueExpression>
</SimpleExpression>
</Expression>
</DataSource>
</Discovery>