Sub topic 13
Cost and coverage considerations
This chapter assumes you have read the earlier chapters on event categories, trails, S3 delivery, and multi-Region and organization trails. You should be comfortable with the AWS CLI and with reading JSON. Cost and coverage pull against each other: every event you record adds to the bill, and every event you skip is one you cannot investigate later. The goal is to choose what to record on purpose, not by default.
What you pay for and what is free
CloudTrail charges by the number of events recorded and by what you do with them afterward. Prices change and differ by Region, so check the CloudTrail pricing page for current rates. The structure stays the same.
| Item | Cost behavior |
|---|---|
| Event history | Free. Shows management events from the last 90 days, per Region. |
| First copy of management events in a trail | Free in each Region. |
| Additional copies of management events | Charged per event. A second trail in the same Region recording the same events counts here. |
| Data events | Charged per event. Not recorded unless you ask for them. |
| Insights events | Charged per event analyzed. Off unless you enable them. |
| CloudTrail Lake | Charged for ingestion and retention, plus query scanning. |
Several costs appear on other services' bills, not under CloudTrail:
- S3 storage for the log files, plus S3 request charges.
- AWS KMS requests, if you encrypt logs with a customer managed key.
- CloudWatch Logs ingestion and storage, if the trail sends events there.
- Athena charges for the data scanned by each query.
- EventBridge and any downstream targets, such as Lambda or SNS.
The free tier is per Region and per copy. A common surprise is a second trail created "just to be safe" in the same Region. It records the same management events and bills for them.
Where the volume comes from
Management events are usually modest. Data events are not. A single busy S3 bucket can produce millions of GetObject calls a day, and each one is a billable event. Lambda Invoke data events and DynamoDB item-level events behave the same way.
Two management-event sources can also be noisy:
- AWS KMS: every
Encrypt,Decrypt, andGenerateDataKeycall is a management event. A workload that reads many encrypted S3 objects generates a large number of KMS events. - Read-only calls such as
Describe*,List*, andGet*from monitoring tools that poll the account.
Find your actual volume before deciding what to cut. If you already have a CloudTrail Lake event data store, this query ranks event sources and names by count.
SELECT eventSource, eventName, COUNT(*) AS calls
FROM <event-data-store-id>
WHERE eventTime > '2026-11-01 00:00:00'
GROUP BY eventSource, eventName
ORDER BY calls DESC
LIMIT 20Run it before and after a change to selectors to see whether the reduction came from the events you meant to remove.
Coverage: what a trail does not capture
Reducing cost only makes sense if you know what coverage you give up. Keep these limits in mind.
- Event history shows management events only. It never contains data events, even if a trail records them.
- Event history keeps 90 days. Anything older exists only if a trail or an event data store captured it.
- Data events are off by default. If you did not enable S3 object-level logging before an incident, there is no record of who read an object.
- CloudTrail records AWS API calls. It does not record what happens inside an instance, such as shell commands, or application-level actions inside your own software.
- A trail records events in the Regions it covers. A single-Region trail misses activity in every other Region, including an attacker launching resources in a Region you never use.
- Global service events, such as IAM and STS, are delivered through specific Regions. A multi-Region trail captures them. A single-Region trail may not.
- Delivery is not instant. Log files usually arrive in S3 about five minutes after the activity, with some events arriving later. Do not treat CloudTrail as a real-time feed. Use EventBridge for faster reaction.
Tuning what you record
Advanced event selectors let you narrow recording by event category, event source, event name, read or write, and resource ARN. This is the main cost tool. The process is to start with full management coverage, then add data events only for resources that justify them.
A selector can make the following narrowing choices.
- Record only write events for data on lower-risk buckets, using
readOnlyequalsfalse. Writes, deletes, and permission changes are usually the interesting ones. - Limit data events to a prefix or bucket with
resources.ARN. - Exclude a noisy management source such as KMS with
eventSourceset toNotEquals.
aws cloudtrail put-event-selectors \
--trail-name org-audit-trail \
--advanced-event-selectors '[
{
"Name": "Management events except KMS",
"FieldSelectors": [
{ "Field": "eventCategory", "Equals": ["Management"] },
{ "Field": "eventSource", "NotEquals": ["kms.amazonaws.com"] }
]
},
{
"Name": "S3 write events for one bucket",
"FieldSelectors": [
{ "Field": "eventCategory", "Equals": ["Data"] },
{ "Field": "resources.type", "Equals": ["AWS::S3::Object"] },
{ "Field": "readOnly", "Equals": ["false"] },
{ "Field": "resources.ARN", "StartsWith": ["arn:aws:s3:::my-sensitive-bucket/"] }
]
}
]'Check the result afterward:
aws cloudtrail get-event-selectors --trail-name org-audit-trailExcluding KMS is a trade-off. You lose the record of which principal decrypted data with which key. If KMS keys protect your most sensitive data, keep the events and accept the cost, or exclude only after you have confirmed that S3 data events cover the same questions.
The diagram shows one way to decide what each category needs.
Insights events
Insights analyzes your management activity and raises an event when the call rate or error rate departs from its normal baseline. It is billed per event analyzed, so it adds cost in proportion to your management event volume. Enable it where an unexpected spike would matter, such as in production accounts. Skip it in sandboxes where the baseline is chaotic. Insights does not replace targeted alerts for specific sensitive calls such as StopLogging.
Multi-Region and organization trails
A multi-Region trail has one copy of each management event per Region, and the first copy is free. An organization trail records for every member account. Both give strong coverage for little extra spend, provided you avoid duplicates.
- Do not create account-level trails in member accounts that repeat what the organization trail already records. Those extra copies are billed.
- Data events on an organization trail apply across all member accounts. A broad selector there can multiply cost quickly, so scope by resource type and ARN.
- Keep one central, locked-down bucket for the organization trail. It is cheaper to protect and monitor than many small ones.
Storage and retention
The S3 bucket grows forever unless you manage it. Log files compress well, so storage is cheap compared with event charges, but long retention still adds up across an organization.
- Use an S3 lifecycle rule to move older logs to a colder storage class, and expire them only after your compliance retention period ends.
- Keep digest files for as long as you keep the logs they cover. Without the digests you cannot run
validate-logson that period. - If you use CloudTrail Lake, retention is a pricing choice. Short retention suits operational queries, and longer retention suits compliance. Querying in Athena over S3 is generally cheaper for rare investigations, while Lake is easier for frequent queries. Match the tool to how often you query.
- Partition Athena tables by date or Region and filter on the partition in each query so that Athena scans less data.
Watching the bill
Treat CloudTrail spend as something to monitor, not a one-time setting.
- Create an AWS Budget with an alert for the CloudTrail service and for the S3 bucket that holds the logs.
- Review Cost Explorer grouped by usage type. A rise in data event usage is the first sign of a new noisy workload.
- After any new application launch, rerun the event-count query above to see whether its calls changed your event volume.
- Re-read your selectors every few months. A bucket that was sensitive a year ago may be archived now, and a new bucket may need coverage.
Exercise
Your team created a second trail in the same Region "for redundancy". Both trails record all management events. What is the cost effect, and what is a better way to get redundancy?
Show answer
The first copy of management events in each Region is free, but the second trail's copy is billed per event. For redundancy, use one multi-Region trail with log file validation, protect the bucket and replicate it (for example with S3 replication to another bucket or account), and avoid a duplicate trail.
Exercise
A trail has this selector set: management events and S3 data events for all buckets. You run put-event-selectors with only a single new selector for one bucket's write events. What happens to the existing selectors, and how do you avoid the problem?
Show answer
The call replaces the whole selector set, so the management events and the all-buckets data events are removed. To avoid this, run get-event-selectors first, then submit the complete list you want, including the management selector.
Exercise
An incident review needs to know who downloaded files from a bucket three weeks ago. The trail records management events only. Can Event history or the trail answer it?
Show answer
No. Downloads are S3 data events (GetObject), which Event history never shows and a trail records only if data events were enabled for that bucket beforehand. The evidence does not exist, so enable scoped data events on sensitive buckets before they are needed.