metadata.log_type = "FW"
metadata.event_type = "NETWORK_CONNECTION"
$ip_blocked = principal.ip
$custom_action = security_result.action
principal.ip in %my_manually_blocked_ip
match:
$custom_action, $ip_blocked
outcome:
$evt_count = count_distinct(metadata.id)
$target_protocol = array_distinct(target.application)
order:
$evt_count desc
I have developped this query to see if there is any allow action after the blocked action for my ip
How i can ajust my quer to get the timestamp of blocked action and timestamp of allowed action and compare them, if the allow is after the block action then i will put an indicator in the outcome that the manually blocked ip have not been blocked correctly
Thanks