Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Use the GetAnomalousBehaviorsByKind() function in advanced hunting to return behaviors containing an insight that involves a specific entity or contextual type.
The function searches the Kind values in each insight's About array. You can optionally limit the results to a specific insight type.
Syntax
invoke GetAnomalousBehaviorsByKind(entityKind, insightType)
Parameters
- entityKind—Required. A
stringcontaining the exactKindvalue to match in the insight'sAboutarray. Examples includeAccount,Country,IP,Host,ISP, andDevice. - insightType—Optional. A
stringcontaining the exact insight type to match, such asFirstSeen,UncommonValue, orHighVolumeAnomaly. If you omit this parameter or specify an empty string, the function matches all insight types.
Invoke the function as part of a query on a tabular input that contains an Insights column of type string.
Return value
Returns the rows from the input table containing an insight whose About array includes an entry with the specified Kind. When insightType is provided, only insights of that type are evaluated. All columns from the input table are preserved.
Examples
Find FirstSeen insights involving a country
BehaviorInfo
| where ServiceSource == "Microsoft Sentinel"
| invoke GetAnomalousBehaviorsByKind("Country", "FirstSeen")
| project TimeGenerated, BehaviorId, Title, Insights
| order by TimeGenerated desc
Find all insights involving an IP address
Omit the insightType argument to return matching insights of any type.
BehaviorInfo
| where ServiceSource == "Microsoft Sentinel"
| invoke GetAnomalousBehaviorsByKind("IP")
| project TimeGenerated, BehaviorId, Title, Insights