@@ -31,13 +31,16 @@ query: |
3131 | where Category == "ApplicationGatewayFirewallLog"
3232 | where action_s == "Matched"
3333 | where Message has "SQL Injection"
34- | project transactionId_g, hostname_s, requestUri_s, TimeGenerated, clientIp_s, Message, details_message_s, details_data_s
34+ | extend transactionId_g = tostring(parse_json(AdditionalFields).transactionId_g)
35+ | extend hostname_s = tostring(parse_json(AdditionalFields).hostname_s)
36+ | project transactionId_g, hostname_s, requestUri_s, TimeGenerated, clientIp_s, Message
3537 | join kind = inner(
3638 AzureDiagnostics
3739 | where Category == "ApplicationGatewayFirewallLog"
38- | where action_s == "Blocked") on transactionId_g
40+ | where action_s == "Blocked"
41+ | extend transactionId_g = tostring(parse_json(AdditionalFields).transactionId_g)) on transactionId_g
3942 | extend Uri = strcat(hostname_s,requestUri_s)
40- | summarize StartTime = min(TimeGenerated), EndTime = max(TimeGenerated), TransactionID = make_set(transactionId_g,100), Message = make_set(Message,100), Detail_Message = make_set(details_message_s,100), Detail_Data = make_set(details_data_s,100), Total_TransactionId = dcount(transactionId_g) by clientIp_s, Uri, action_s
43+ | summarize StartTime = min(TimeGenerated), EndTime = max(TimeGenerated), TransactionID = make_set(transactionId_g,100), Message = make_set(Message,100), Total_TransactionId = dcount(transactionId_g) by clientIp_s, Uri, action_s
4144 | where Total_TransactionId >= Threshold
4245# The Threshold value above can be changed as per your infrastructure's requirement
4346entityMappings :
@@ -49,5 +52,5 @@ entityMappings:
4952 fieldMappings :
5053 - identifier : Address
5154 columnName : clientIp_s
52- version : 1.0.0
55+ version : 1.0.1
5356kind : Scheduled
0 commit comments