Query Details
SecurityEvent | where EventID == 4740 or EventID == 644 //A user account was locked out | extend LowerAccount=tolower(Account) | search "username"
This query searches for security events where a user account was locked out. It specifically looks for events with EventID 4740 or 644. It also converts the account name to lowercase and searches for events that contain the word "username".

Rod Trent
Released: June 30, 2020
Tables
Keywords
Operators