What Is AWS CloudTrail? Trace Account Activity and Preserve Audit Records
AWS CloudTrail records who requested an action in an AWS account, when it happened, and where the request came from. These events help investigate changes such as a permission update or resource deletion. The recent 90-day Event history view does not provide long-term retention or capture every resource-level activity. For an ongoing record, configure a trail to deliver events to Amazon S3 and explicitly choose which event types to record.
AWS CloudTrail records who requested an action in an AWS account, when it happened, and where the request came from. These events help investigate changes such as a permission update or resource deletion. The recent 90-day Event history view does not provide long-term retention or capture every resource-level activity. For an ongoing record, configure a trail to deliver events to Amazon S3 and explicitly choose which event types to record.
What does a CloudTrail event record?
A CloudTrail event is a record of one activity in an AWS account. It can show the caller, service and API action, request time and Region, and related resources. If an administrator changes an IAM role policy, the corresponding API event can help identify the principal and request details. This differs from Amazon CloudWatch metrics, which show operational measurements. CloudTrail is primarily an audit trail of account activity; CloudWatch focuses on performance and operational signals.
Event categories serve different purposes. Management events record control-plane actions that manage account resources or settings, such as changing an IAM policy or creating an EC2 instance. Data events can record activity inside a resource, such as S3 object GetObject or PutObject calls and Lambda function Invoke activity; these can be high volume. Network activity events can record network activity such as API requests denied at a VPC endpoint. Insights events can be configured to identify unusual changes in management API call volume or error rates. Trails and event data stores include management events by default, but not data, network activity, or Insights events.
An event is a record of a call, not necessarily a complete account of every resulting system-state change or a statement of the caller’s intent. Interpret related events alongside time, identity, API name, and Region, and compare them with AWS Config records, application logs, or deployment history when needed. Do not treat one event as conclusive proof of motive or full system state.
What does Event history show, and what are its limits?
AWS accounts have CloudTrail Event history by default. Without creating a trail, you can view, search, and download the past 90 days of management events for a single Region. In the console, narrow results by one attribute, such as event name or event source, and a time range. The AWS CLI command aws cloudtrail lookup-events can also find recent events.
This is useful for a quick question such as “Who changed this IAM role yesterday?” Event history does not show data, Insights, or network activity events. A search covers only one AWS account and one Region at a time and supports limited filtering. Events older than 90 days are no longer available in this view. Event history is separate from trails and event data stores, so changing a trail does not change the Event history view.
Think of the options separately: use Event history for a recent management-event lookup, a trail for records that must persist beyond 90 days, and CloudTrail Lake for richer queries in an existing customer environment. Lake has an important availability restriction for new customers, described below.
How do you plan a trail for long-term records?
A trail is a configuration that continuously delivers selected CloudTrail events as log files to an Amazon S3 bucket. You can optionally deliver them to CloudWatch Logs or Amazon EventBridge to support alerting and analysis. Trails created in the console are multi-Region trails, which can collect activity from enabled Regions in the account into one S3 bucket. A single-Region trail is limited to that Region. An organization trail can cover accounts in AWS Organizations when configured for that purpose.
For long-term audit use, decide the account and Region scope, S3 access permissions, encryption and retention policy, and how delivery failures will be checked. Confirm that Regions requiring opt-in are included. Do not assume that one multi-Region setting automatically covers every account or AWS partition; review the organization-trail configuration.
For example, suppose an operations team asks who attached a policy to a production role. In Event history, select the relevant Region and period, then filter by an event name such as AttachRolePolicy or by the CloudTrail event source. Review the caller, time, request parameters, and target role. If the investigation requires older records, examine the trail files delivered to S3 for the same identity and time window. This is an illustrative workflow; exact event fields and API names depend on the AWS action.
Why consider data events and cost separately?
Actions inside a resource—such as who read or wrote an S3 object, or how often a Lambda function was invoked—may be data events. CloudTrail does not record these by default because they can be high volume. Specify the resources and API activity with event selectors. Data-event logging can incur additional charges. Instead of recording every object operation automatically, select the buckets, functions, and actions that meet the security or audit need to manage collection scope and cost.
Enabling logging does not create past events retroactively. A trail is an ongoing delivery path for events after configuration; Event history is a separate view of recent management activity. Match retention and search methods to actual audit requirements, and review S3 and KMS permissions so only intended users can read delivered logs.
Who can use CloudTrail Lake now?
CloudTrail Lake is a managed feature for collecting activity into event data stores and analyzing it with SQL. AWS documentation says that CloudTrail Lake stopped accepting new customers on May 31, 2026; existing customers can continue to use it. It remains relevant for existing customers reviewing stored events and queries, but should not be presented as the default option for a new deployment. AWS directs customers seeking similar capabilities to consider CloudWatch, whose fit and ingestion paths should be assessed against the specific requirements.
Existing customers also need to consider ingestion, retention, and scanned-data charges. Avoid unbounded queries such as SELECT * over an entire event data store; constrain the eventTime range where practical. Because service availability, alternatives, and pricing can change, check AWS’s latest notice before a new design or migration.
What should you check when getting started?
Start with the audit question. “Who changed IAM permissions?” may be answered by management events; “Who read a particular S3 object?” may require data-event selection. Then decide whether Event history is enough, whether a long-term S3 trail is needed, and whether multiple Regions or accounts must be covered. Review retention, access, encryption, delivery health, data-event selectors, and expected usage together.
After configuration, verify that representative management events and any required data events are generated and delivered. Practice finding an event and interpreting its caller and target resource. CloudTrail provides an audit record of activity, but that record does not necessarily explain every system state or a person’s intent. It is most useful when event scope, retention, and analysis are designed for the questions investigators actually need to answer.
References
[CloudTrail concepts: Event history, trails, Regions, and organization scope](https://docs.aws.amazon.com/awscloudtrail/latest/userguide/cloudtrail-concepts.html)
[CloudTrail event types and records](https://docs.aws.amazon.com/awscloudtrail/latest/userguide/cloudtrail-events.html)
[Event history scope and limitations](https://docs.aws.amazon.com/awscloudtrail/latest/userguide/view-cloudtrail-events.html)
[Create an account trail and deliver events to S3](https://docs.aws.amazon.com/awscloudtrail/latest/userguide/cloudtrail-create-and-update-a-trail.html)
[Multi-Region trails and opt-in Regions](https://docs.aws.amazon.com/awscloudtrail/latest/userguide/cloudtrail-multi-region-trails.html)
[Log data events and use event selectors](https://docs.aws.amazon.com/awscloudtrail/latest/userguide/logging-data-events-with-cloudtrail.html)
[CloudTrail Lake availability change for new customers after May 31, 2026](https://docs.aws.amazon.com/awscloudtrail/latest/userguide/cloudtrail-lake-service-availability-change.html)
[CloudTrail Lake queries and scanned-data costs](https://docs.aws.amazon.com/awscloudtrail/latest/userguide/cloudtrail-lake-queries.html)