Created
October 11, 2018 21:04
-
-
Save jonathanhle/1ab64f60b12dec92ddb9bea874163ad6 to your computer and use it in GitHub Desktop.
cloudtrail athena search for console login failures
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
select useridentity.username, sourceipaddress, eventtime, json_extract_scalar(responseElements, '$.ConsoleLogin') as ConsoleLogin | |
from default.cloudtrail_logs_blah_athena_table | |
where eventname = 'ConsoleLogin' and json_extract_scalar(responseElements, '$.ConsoleLogin') = 'Failure' | |
LIMIT 1000; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment