changing equality for ip addresses
This commit is contained in:
Родитель
9203472f6d
Коммит
a450982b05
|
@ -18,7 +18,7 @@ query: |
|
|||
|
||||
let AccountActivity_byIP = (v_IP_Address:string){
|
||||
AzureActivity
|
||||
| where Caller != '' and CallerIpAddress == v_IP_Address
|
||||
| where Caller != '' and CallerIpAddress =~ v_IP_Address
|
||||
| summarize Account_Aux_StartTime = min(TimeGenerated),
|
||||
Account_Aux_EndTime = max(TimeGenerated),
|
||||
Count = count() by
|
||||
|
|
|
@ -18,7 +18,7 @@ query: |
|
|||
|
||||
let AccountActivity_byIP = (v_IP_Address:string){
|
||||
AzureActivity
|
||||
| where Caller != '' and CallerIpAddress == v_IP_Address
|
||||
| where Caller != '' and CallerIpAddress =~ v_IP_Address
|
||||
| summarize Account_Aux_StartTime = min(TimeGenerated),
|
||||
Account_Aux_EndTime = max(TimeGenerated),
|
||||
Count = count() by
|
||||
|
|
|
@ -20,7 +20,7 @@ query: |
|
|||
WireData
|
||||
| parse Computer with HostName '.' Host_DnsDomain
|
||||
| where SessionState == 'Disconnected'
|
||||
| where RemoteIP == v_IP_Address
|
||||
| where RemoteIP =~ v_IP_Address
|
||||
| extend Host_HostName = iff(Computer has '.', HostName, Computer)
|
||||
| summarize Host_Aux_BytesReceived = sum(ReceivedBytes), make_set(LocalIP) by Host_HostName, Host_DnsDomain
|
||||
| top 10 by Host_Aux_BytesReceived asc nulls last
|
||||
|
|
|
@ -20,7 +20,7 @@ query: |
|
|||
WireData
|
||||
| parse Computer with HostName '.' Host_DnsDomain
|
||||
| where SessionState == 'Disconnected'
|
||||
| where RemoteIP == v_IP_Address
|
||||
| where RemoteIP =~ v_IP_Address
|
||||
| extend Host_HostName = iff(Computer has '.', HostName, Computer)
|
||||
| summarize Host_Aux_BytesReceived = sum(ReceivedBytes), make_set(LocalIP) by Host_HostName, Host_DnsDomain
|
||||
| top 10 by Host_Aux_BytesReceived desc nulls last
|
||||
|
|
|
@ -19,7 +19,7 @@ query: |
|
|||
let HostsSendingDatatoIP = (v_IP_Address:string){
|
||||
WireData
|
||||
| where SessionState == 'Disconnected'
|
||||
| where RemoteIP == v_IP_Address
|
||||
| where RemoteIP =~ v_IP_Address
|
||||
| summarize Host_Aux_BytesSent = sum(SentBytes) by Computer, LocalIP
|
||||
| parse Computer with HostName '.' Host_DnsName
|
||||
| extend Host_HostName = iff(Computer has '.', HostName, Computer)
|
||||
|
|
|
@ -19,7 +19,7 @@ query: |
|
|||
let HostsSendingDatatoIP = (v_IP_Address:string){
|
||||
WireData
|
||||
| where SessionState == 'Disconnected'
|
||||
| where RemoteIP == v_IP_Address
|
||||
| where RemoteIP =~ v_IP_Address
|
||||
| summarize Host_Aux_BytesSent = sum(SentBytes) by Computer, LocalIP
|
||||
| parse Computer with HostName '.' Host_DnsName
|
||||
| extend Host_HostName = iff(Computer has '.', HostName, Computer)
|
||||
|
|
|
@ -20,7 +20,7 @@ query: |
|
|||
let MostDroppedDestIP = (v_IP_Address:string){
|
||||
WindowsFirewall
|
||||
| where FirewallAction == 'DROP'
|
||||
and SourceIP == v_IP_Address
|
||||
and SourceIP =~ v_IP_Address
|
||||
| summarize DropCount = count(), Ports = makeset(DestinationPort) by DestinationIP
|
||||
| sort by array_length(Ports), DropCount
|
||||
| serialize rn=row_number()
|
||||
|
|
|
@ -19,7 +19,7 @@ query: |
|
|||
let MostDroppedSourceIP = (v_IP_Address:string){
|
||||
WindowsFirewall
|
||||
| where FirewallAction == 'DROP'
|
||||
and DestinationIP == v_IP_Address
|
||||
and DestinationIP =~ v_IP_Address
|
||||
| summarize IP_Aux_DropCount = count(), DestPorts = makeset(DestinationPort) by SourceIP
|
||||
| sort by IP_Aux_DropCount
|
||||
| serialize rn=row_number()
|
||||
|
|
|
@ -19,7 +19,7 @@ query: |
|
|||
|
||||
let GetAllAccountByIP = (v_IP_Address:string){
|
||||
OfficeActivity
|
||||
| where ClientIP == v_IP_Address
|
||||
| where ClientIP =~ v_IP_Address
|
||||
| extend info = pack('ClientIP', ClientIP, 'UserType', UserType, 'Operation', Operation, 'OfficeWorkload', OfficeWorkload, 'ResultStatus', ResultStatus)
|
||||
| summarize min(TimeGenerated), max(TimeGenerated), Account_Aux_Count=count(), Account_Aux_info = makeset(info) by UserId
|
||||
| project Account_Aux_StartTime = min_TimeGenerated, Account_Aux_EndTime = max_TimeGenerated, UserId, Account_Aux_Count, Account_Aux_info
|
||||
|
|
Загрузка…
Ссылка в новой задаче