admin管理员组文章数量:1357615
I am trying to trigger the following KQL query in a custom scheduled Analytics Rule...
It is to identify ANY Global Administrator and verify if they have committed any activity (Sign-in) over the last 24 hours.
Simple testing is to get a Global Administrator to sign in within the last 24 hours.
Now the query triggers and returns records when run in the Logs pane...
What I have noticed is that when activated in a custom-scheduled Analytics Rule, it fails to return records!
Now the time range set for the analytics rule (query frequency & lookback duration) aligns properly with the query logic or any log ingestion delay.
Query scheduling
Run query every: 1 day Lookup data from the last: 1 day
The funny thing is, when testing the KQL query in the Analytics Rule and Set rule logic/View query results, if the FIRST ATTEMPT returns no results (in the simulation), after repeatedly testing (clicking the test link), it DOES return records!
Why is there a time-lag? How can I ensure the query triggers correctly, returning records accordingly, and related Incidents?
This is the KQL query...
let PrivilgedRoles = dynamic(["Global Administrator"]);
let PrivilegedIdentities =
IdentityInfo
| summarize arg_max(TimeGenerated, *) by AccountObjectId
| mv-expand AssignedRoles
| where AssignedRoles in~ (PrivilgedRoles)
| extend lc_AccountUPN = tolower(AccountUPN)
| summarize AssignedRoles=make_set(AssignedRoles)
by
AccountObjectId,
AccountSID,
lc_AccountUPN,
AccountDisplayName,
JobTitle,
Department;
SigninLogs
| where TimeGenerated > ago (1d)
| extend lc_UserPrincipalName = tolower(UserPrincipalName)
| join kind=inner PrivilegedIdentities on $left.lc_UserPrincipalName == $right.lc_AccountUPN
| project
TimeGenerated,
AccountDisplayName,
AccountObjectId,
lc_AccountUPN,
lc_UserPrincipalName,
AppDisplayName,
ResultType,
ResultDescription,
IPAddress,
LocationDetails
本文标签: kqlMicrosoft Sentinel Scheduled Analytics Rule not triggeringStack Overflow
版权声明:本文标题:kql - Microsoft Sentinel Scheduled Analytics Rule not triggering - Stack Overflow 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1744077890a2587085.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论