FROM logs-okta*
| WHERE
event.dataset == "okta.system"
AND (event.action == "user.session.start" OR event.action RLIKE "user\\.authentication(.*)")
AND okta.outcome.reason == "INVALID_CREDENTIALS"
| KEEP okta.client.ip, okta.actor.alternate_id, okta.actor.id, event.action, okta.outcome.reason
| STATS
source_auth_count = COUNT_DISTINCT(okta.actor.id)
BY okta.client.ip, okta.actor.alternate_id
| WHERE
source_auth_count > 5
| SORT
source_auth_count DESC
Install detection rules in Elastic Security
Detect Multiple Okta User Authentication Events with Client Address in the Elastic Security detection engine by installing this rule into your Elastic Stack.
To setup this rule, check out the installation guide for Prebuilt Security Detection Rules(opens in a new tab or window).