ExitAmazon CloudWatch: centralized log analysis1 / 9
Explanation

Collect evidence before you need it

How log collection, retention, access controls, and Logs Insights queries support investigation of application failures and security-relevant activity. · associate

CloudWatch Logs centralizes application and system log events so an investigation does not depend on reaching the original host. For an application on Amazon EC2, configure the CloudWatch agent to collect the relevant log files and send them to CloudWatch Logs. EC2 monitoring alone does not collect arbitrary application log files.

A log stream holds events from a particular source, such as one application instance. A log group brings related streams together and provides a boundary for settings such as retention. Use consistent group names for the application and environment, and record timestamps, severity, service name, and request identifiers.

The diagram follows evidence flow, not query requests or permission checks. It shows collected events becoming retained evidence, then query results available to an authorized investigator.

Log eventsRetained eventsQuery results
Amazon EC2Application and CloudWatch agent
Amazon CloudWatchCloudWatch Logs: application log group
Amazon CloudWatchCloudWatch Logs Insights
UsersAuthorized investigator

1 / 5 The application writes log files on EC2. The configured CloudWatch agent collects those files; the instance role must permit delivery.

AWS architecture icons are the property of Amazon Web Services. BlowStack is not affiliated with or endorsed by AWS.