DOP-C02

Introduction to CloudWatch Logs and Log Analytics

Collecting, securing and analysing logs: CloudWatch Logs retention and encryption, metric filters, Logs Insights, subscription filters, S3 log lifecycles and processing, and Kinesis and Athena analysis.

  • 6 lessons
  • Module quiz

Logs record what happened, event by event: requests, errors, API calls and network flows. They are the evidence used to troubleshoot incidents, investigate security events and prove compliance. Amazon CloudWatch Logs stores and searches logs, and logs delivered to Amazon S3 can be retained cheaply for years and analysed with Amazon Athena or streamed for real-time analysis.

Where this module fits

The exam guide lists more skills for log collection, storage and analysis than for almost any other topic in Domain 4. This module covers them in the order a log travels: stored and secured, turned into metrics, searched, streamed to other systems, archived and analysed.

How this module is organised

Storing and Securing Logs in Amazon CloudWatch Logs covers retention, log classes, encryption and masking. Creating Metrics from Logs with Metric Filters and Filter Patterns explains metric filters and pattern syntax. Searching Logs with CloudWatch Logs Insights explains the query language. Processing Logs in Real Time with Subscription Filters explains delivery to other services and accounts. Managing Log Lifecycles and Processing Log Files in Amazon S3 covers archives and S3 events. Analysing Real-Time Log Streams and Log Archives compares Kinesis, Athena and OpenSearch Service.

  1. Storing and Securing Logs in Amazon CloudWatch Logs Lesson 1
  2. Creating Metrics from Logs with Metric Filters and Filter Patterns Lesson 2
  3. Searching Logs with CloudWatch Logs Insights Lesson 3
  4. Processing Logs in Real Time with Subscription Filters Lesson 4
  5. Managing Log Lifecycles and Processing Log Files in Amazon S3 Lesson 5
  6. Analysing Real-Time Log Streams and Log Archives Lesson 6
  7. Practise and review
  8. Checkpoint Practice activities across the module
  9. Test your knowledge 4 questions