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 GetAnomalousBehaviorsByValue() function in advanced hunting to return behaviors containing an insight that involves a specific entity or contextual value.
The function searches the Value fields in each insight's About array. You can optionally limit the results to a specific insight type.
Syntax
invoke GetAnomalousBehaviorsByValue(entityValue, insightType)
Parameters
- entityValue—Required. A
stringcontaining the exactValueto match in the insight'sAboutarray. The value can represent an account, country, IP address, ISP, device, resource, or other contextual value. - 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 Value. 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 specific account
BehaviorInfo
| where ServiceSource == "Microsoft Sentinel"
| invoke GetAnomalousBehaviorsByValue(
"jsmith@contoso.com",
"FirstSeen"
)
| project TimeGenerated, BehaviorId, Title, Insights
| order by TimeGenerated desc
Find all insights involving a specific country
Omit the insightType parameter to return matching insights of any type.
BehaviorInfo
| where ServiceSource == "Microsoft Sentinel"
| invoke GetAnomalousBehaviorsByValue("Sweden")
| project TimeGenerated, BehaviorId, Title, Insights