Articles → AWS → Create A Report Of Those Users Who Have Logged In To The AWS Console Today
Create A Report Of Those Users Who Have Logged In To The AWS Console Today
Steps
- Create a cloud trail
- Create a table in Athena for CloudTrail
- Create a query in Athena
Create A CloudTrail
Click to Enlarge
Create A Table In Athena For CloudTrail
Click to Enlarge
Click to Enlarge
Create A Query In Athena
Click to Enlarge
select from_iso8601_date(substr(eventtime,1,10)), *
from cloudtrail_logs_aws_cloudtrail_logs_462618770999_54460e6c
where
date_diff('Day',from_iso8601_date(substr(eventtime,1,10)),CURRENT_DATE) = 0
and
eventname = 'ConsoleLogin'
Click to Enlarge