Choose by the question, not the word “log”
When API activity evidence from CloudTrail is needed rather than operational metrics, application logs, and alarms from CloudWatch. · associate
AWS CloudTrail provides evidence of AWS activity. Use it when the question is about an AWS API action: which identity requested a change, what action was requested, and when. For example, investigating who requested a database configuration change calls for activity evidence, not a graph of database performance.
Amazon CloudWatch provides operational telemetry for resources and applications. Metrics show measurements over time, such as CPU utilization and request latency. Collected application logs provide messages such as exceptions and timeouts. Alarms evaluate metrics and can notify you or trigger configured actions.
The distinction is activity evidence versus operational telemetry, not logs versus metrics. Both services work with logs, but those logs answer different questions. An AWS action record explains what was requested through an AWS API; an application log explains what the application reported while running.
| Need | Use | Evidence |
|---|---|---|
| Identify a change requester | CloudTrail | AWS activity record |
| Measure resource utilization | CloudWatch | Metrics |
| Inspect application exceptions | CloudWatch | Application logs |
| Alert on elevated latency | CloudWatch | Metric alarm |