AWS · explainer · checked November 3, 2026
CloudTrail vs CloudWatch: who did it, and how is it running
AWS CloudTrail records API activity in your account: who or what called which action, on which resource, and when. Amazon CloudWatch collects metrics, logs, and alarms that show how your resources and applications are running. Ask “who changed this?” and the answer is CloudTrail. Ask “is it healthy?” and the answer is CloudWatch. They can also feed each other.
Side by side
| AWS CloudTrail | Amazon CloudWatch | AWS Config | |
|---|---|---|---|
| Question it answers | Who or what took which action, and when? | How is it performing, and is something wrong now? | How is this resource configured, and how did that change? |
| What it records | API calls and other account activity, as events | Metrics, logs, and traces; alarms and dashboards act on them | Configuration of resources and the relationships between them, over time |
| Works with | Event history, trails, CloudTrail Lake | Metrics, alarms, dashboards, Logs | Rules, conformance packs, aggregators |
| Typical use | Audit, security investigation, compliance | Monitoring, alerting, troubleshooting | Compliance checks and configuration history |
The short version
Both services record things about your AWS account, so people mix them up. They record different things.
AWS CloudTrail is about **activity**. When a user, a role, or an AWS service takes an action, CloudTrail records it as an event. That includes actions taken in the AWS Management Console, the AWS Command Line Interface, and the AWS SDKs and APIs. AWS says you can use it to identify who or what took which action, which resources were acted on, and when it happened.
Amazon CloudWatch is about **behavior**. It monitors your AWS resources and the applications you run on them, in real time. It collects metrics, stores logs, and raises alarms when a metric crosses a threshold you set.
A simple test: if the question starts with “who”, “when was this deleted”, or “which role did that”, it is CloudTrail. If it starts with “how much”, “how slow”, or “alert me when”, it is CloudWatch.
What CloudWatch covers
CloudWatch has three main parts that matter here.
- **Metrics** are numbers tracked over time, such as CPU use. Many AWS services report basic metrics to CloudWatch automatically, and you can publish your own custom metrics.
- **Logs** are stored in log groups and streams. CloudWatch Logs Insights runs queries on them, and metric filters turn log patterns into metrics.
- **Alarms** watch a metric against a threshold and can send a notification or trigger an automated action. Dashboards show metrics and logs together.
The CloudWatch agent collects metrics, logs, and traces from Amazon EC2 instances, on-premises servers, and containerized applications. None of this describes who made a change. It describes what the system is doing.
What CloudTrail covers
CloudTrail has three ways to keep events.
- **Event history** is on by default for your account. It holds the last 90 days of management events for one AWS Region, and AWS describes the record as immutable. You can search it and download it. There is no CloudTrail charge for viewing it.
- **Trails** deliver events to an Amazon S3 bucket for as long as you keep them there, with optional delivery to CloudWatch Logs and Amazon EventBridge. A trail can cover one account or an organization.
- **CloudTrail Lake** is a managed data lake where you run SQL queries over events kept in event data stores, for up to about ten years with the longer pricing option. New customers could not sign up for CloudTrail Lake after May 31, 2026, according to AWS. Accounts already using it keep the service.
Event history has limits. It shows only management events, covers one Region at a time, and lets you filter on a single attribute. For a record longer than 90 days, or for data events, you need a trail or an event data store.
Management events and data events
CloudTrail splits activity into kinds, and this is a frequent source of confusion.
**Management events** are control plane operations: changes to how your resources are set up. Examples are attaching an IAM policy, creating a subnet, or creating a trail. A user signing in to the console is also logged, as a ConsoleLogin event. Trails and event data stores log management events by default, and you can choose read-only events, write-only events, or both.
**Data events** are data plane operations: what happens on or inside a resource. Examples are Amazon S3 object-level calls such as GetObject and PutObject, and AWS Lambda Invoke calls. They are high volume. Trails do not log them by default, and extra charges apply, so you turn them on for the resources you care about.
**Insights events** are a third kind. They flag unusual patterns in API call rates and error rates in your management events.
The practical point: if a question is about who read an S3 object, event history will not have it. A trail with S3 data events will.
How they connect
The two services are used together more than they are chosen between.
**CloudTrail to CloudWatch Logs.** You can configure a trail to send events to a CloudWatch Logs log group. You then create a metric filter that matches a pattern, such as ConsoleLogin events, attach a CloudWatch metric to it, and create an alarm on that metric. The alarm can notify you or start an action. That turns “somebody signed in” from a record into an alert. Standard CloudWatch pricing applies.
**CloudTrail to Amazon EventBridge.** A trail that logs management or data events makes them available to EventBridge, where a rule can respond. The detail types include AWS API Call via CloudTrail and AWS Console Sign In via CloudTrail. A rule might start an automation when a security group changes.
**CloudWatch to CloudTrail.** The link runs the other way as well. CloudTrail logs the API calls made to CloudWatch itself, as it does for many other AWS services.
Where AWS Config fits
AWS Config is the third service people confuse with these two. It records the **configuration** of your resources: how an Amazon EC2 instance, security group, or VPC is set up, how resources relate to each other, and how that changed over time. It also evaluates resources against rules and flags noncompliant ones.
Suppose a security group suddenly allows traffic from anywhere. CloudTrail tells you who made the call that changed it and when. AWS Config shows what the group looked like before and after, and whether it now violates a rule. CloudWatch is the place you might have an alarm on the traffic that followed.
CloudTrail Lake can also store AWS Config configuration items, so the two records can be queried together.
On the exams
How certification exams use this
The exam guides for the operations, security, and DevOps exams list monitoring, logging, and auditing as tasks. The wording usually gives the answer away. A requirement to determine who made a change, or to keep an audit record of API calls, points to CloudTrail. A requirement to alert on a threshold, graph a metric, or collect application logs points to CloudWatch. A requirement about configuration history or rule compliance points to AWS Config. The common wrong answer is CloudWatch for an audit question. On the Cloud Practitioner exam the task is to match the service to its purpose.
Test yourself
See how well you know it, free.
Each exam’s diagnostic is free, with no sign-in: questions across the whole exam, and a map of what you know and what you don’t.
AWS Certified CloudOps Engineer – Associate
20 free questions, no sign-in.
Take the free diagnosticAbout the examAWS Certified Security – Specialty
20 free questions, no sign-in.
Take the free diagnosticAbout the examAWS Certified DevOps Engineer – Professional
20 free questions, no sign-in.
Take the free diagnosticAbout the examAWS Certified Solutions Architect – Professional
20 free questions, no sign-in.
Take the free diagnosticAbout the examAWS Certified Developer – Associate
20 free questions, no sign-in.
Take the free diagnosticAbout the examAWS Certified Cloud Practitioner
20 free questions, no sign-in.
Take the free diagnosticAbout the exam
Sources
Checked against the vendors’ own documentation.
- CloudTrail Lake availability change
- Logging Amazon CloudWatch API and console operations with AWS CloudTrail
- Collect metrics, logs, and traces using the CloudWatch agent
- What is AWS Config?
- What Is AWS CloudTrail?
- Working with CloudTrail event history
- Logging management events
- Logging data events
- Monitoring CloudTrail log files with Amazon CloudWatch Logs
- AWS service integrations with CloudTrail logs
- Working with AWS CloudTrail Lake
- What is Amazon CloudWatch?
Last checked November 3, 2026. Spotted something wrong or out of date? Tell us.