I would like to create a rule that counts the difference between the number of push authentication attempts and response events when login into OKTA. However, a caution message appears. I clicked 'Learn More' and read the documentation, but I still don't understand why this caution occurs or how to address it. Could you explain the reason for this caution and how to fix the issue?
When writing rules with multiple event variables, outcomes that include sum, count, or arra
y are calculated over every combination of events.
events:
$push.metadata.log_type = "OKTA"
$push.metadata.product_event_type = "system.push.send_factor_verify_push"
$push.principal.user.userid = $userid
$response.metadata.log_type = "OKTA"
$response.metadata.product_event_type = "user.session.start"
$response.principal.user.userid = $userid
// $response.metadata.event_timestamp.seconds // $push.metadata.event_timestamp.seconds
match:
$userid over 30m after $push
outcome:
$push_count = sum(if($push.metadata.product_event_type = "system.push.send_factor_verify_push", 1, 0))
$response_count = sum(if($response.metadata.product_event_type = "user.session.start", 1, 0))
$bet_count = math.abs($push_count - $response_count)
condition:
$push and $response and $bet_count > 10
