Updated Queries
This commit is contained in:
Родитель
5822a35708
Коммит
9ac3464878
|
@ -19,6 +19,8 @@ query: |
|
||||||
// The underlying table where the data exists is the Event table.
|
// The underlying table where the data exists is the Event table.
|
||||||
// the timeframe and threshold can be changed below as per requirement
|
// the timeframe and threshold can be changed below as per requirement
|
||||||
//
|
//
|
||||||
|
let TimeFrame = 1d;
|
||||||
|
let failedThreshold = 3;
|
||||||
SQLEvent
|
SQLEvent
|
||||||
| where TimeGenerated >= ago(TimeFrame)
|
| where TimeGenerated >= ago(TimeFrame)
|
||||||
| where LogonResult has "failed"
|
| where LogonResult has "failed"
|
||||||
|
|
|
@ -22,7 +22,6 @@ query: |
|
||||||
SQLEvent
|
SQLEvent
|
||||||
| where TimeGenerated >= ago(1d)
|
| where TimeGenerated >= ago(1d)
|
||||||
| where Statement has "Create Login"
|
| where Statement has "Create Login"
|
||||||
| parse Statement with "CREATE LOGIN [" TargetUser:string
|
| parse Statement with "CREATE LOGIN [" TargetUser:string "]" *
|
||||||
"]" *
|
|
||||||
| project TimeGenerated, Computer, Action, ClientIP, CurrentUser, DatabaseName, TargetUser, ObjectName, Statement
|
| project TimeGenerated, Computer, Action, ClientIP, CurrentUser, DatabaseName, TargetUser, ObjectName, Statement
|
||||||
| extend timestamp = TimeGenerated, AccountCustomEntity = CurrentUser, IPCustomEntity = ClientIP
|
| extend timestamp = TimeGenerated, AccountCustomEntity = CurrentUser, IPCustomEntity = ClientIP
|
Загрузка…
Ссылка в новой задаче