As the title gives it away, I logged into my AWS console today morning but can't see the logs in Cloudtrail for the same.
My question is
a) Is this default behaviour to log AWS console login to Cloudtrail ? b) What could i possibly have missed ?
As the title gives it away, I logged into my AWS console today morning but can't see the logs in Cloudtrail for the same.
My question is
a) Is this default behaviour to log AWS console login to Cloudtrail ? b) What could i possibly have missed ?
Console login events are IAM events and IAM is a global service. Global service events are captured in us-east-1 (N. Virginia) region.
So, regardless of which AWS region you are working in, when you login to the AWS console this event will only be captured in us-east-1, not the region you are working in (if different to us-east-1).
To view the console login events for your account, navigate to the CloudTrail event history and select N.Virginia from the region selector. (since Nov. 2021).
This behaviour was implemented as of Nov. 2021 - read this for more -> https://docs.aws.amazon.com/awscloudtrail/latest/userguide/cloudtrail-concepts.html#cloudtrail-concepts-global-service-events
2023:
The region, in wich the ConsoleLogin API Calls are logged depend on the login-url.
For example: https://eu-north-1.signin.aws.amazon.com/ -> ConsoleLogin API call will be located in eu-north-1.
https://eu-central-1.signin.aws.amazon.com/ -> ConsoleLogin API call will be located in eu-central-1.
If you use the default login-url, the call will be logged in us-east-1. https://signin.aws.amazon.com/