AWS Builder Center

Find the Story Behind an AWS Change with CloudTrail

Learn how to search AWS CloudTrail Event history, inspect a management event, and understand what the record can tell you about account activity.

Find the Story Behind an AWS Change with CloudTrail

A resource changed and you’re not sure why. Was it updated through the AWS Management Console, an SDK, or the command line? AWS CloudTrail can help you investigate by recording account activity as events.

Start with Event history

In the AWS CloudTrail console, open Event history. It shows the last 90 days of management events for the AWS Region you select. You can filter by an attribute such as event name, event source, or user name, then open an event to inspect its details.  AWS CloudTrail documentation 
Try a simple exercise: search for an event you recognize, such as  ConsoleLogin , or look for an event related to a resource you recently created or changed. Open the result and review the event record.

What to look for

An event record can help answer questions such as:
  • What happened? Check the event name and source.
  • When did it happen? Review the event time.
  • Who or what made the request? Look at the identity information.
  • Which resources were involved? Review the resource details, when present.
Use these details as clues while troubleshooting. An event provides a record of an action, but you may need other context—such as application logs or deployment history—to understand why it happened.

Know what Event history includes

Event history shows management events, such as actions that create, update, or delete resources. It does not show data events, such as individual object-level activity in an S3 bucket. Searches are limited to one AWS account and one Region at a time.  Event history limits 
If you need an ongoing record beyond 90 days, AWS documents using a trail or a CloudTrail Lake event data store. Consider what events you need, how long you need to retain them, and the costs of storage or event data store usage before configuring longer-term logging.  How CloudTrail works 
CloudTrail Event history is a practical first stop when you need to investigate account activity. Start with a time range and a useful filter, inspect the event details, and follow up with other logs when you need more context.
Any opinions in this article are those of the individual author and may not reflect the opinions of AWS.
Enjoyed reading this content? Let the author know!

Your likes, comments, shares, and saves help creators reach more builders.

Loading recommendations

Loading article