Select the activity you need to record
How event selection, trail configuration, and event lookup provide API activity records that reveal caller identities, requests, and access failures. · associate
AWS CloudTrail records AWS API activity so you can investigate who requested an action, what they requested, and what happened. Calls can originate from the console, command-line tools, SDKs, or AWS services. Coverage depends on the supported event types and the recording configuration; do not assume every action appears automatically.
Management events describe control-plane operations, such as creating an S3 bucket or changing its policy. Data events describe operations on resources, such as S3 GetObject and PutObject. Trails log management events by default, but data events require explicit selection. Event selectors determine which supported events a trail records. You can select read activity, write activity, or both, and narrow data-event collection to relevant resources.
Network activity events are a separate category for supported API activity through VPC endpoints, including endpoint-policy denials. They require explicit enablement and are delivered to the endpoint owner. Choose event coverage before the activity occurs: enabling collection later does not recover previously unrecorded events.
| Event category | Example | Trail selection |
|---|---|---|
| Management | Change a bucket policy | Enabled by default |
| Data | Read an S3 object | Explicitly select |
| Network activity | Endpoint-policy denial | Explicitly enable |