Introduction to CloudWatch Logs and the CloudWatch Agent
Log groups, retention and encryption, metric filters, subscription filters, Logs Insights, the CloudWatch agent and Container Insights for ECS and EKS.
- 5 lessons
- Module quiz
Logs record what systems did and why they failed. CloudWatch Logs stores log events from AWS services, instances and applications in log groups, where they can be searched, turned into metrics, streamed to other services and kept for a defined retention period, which by default is never to expire.
Not all data reaches CloudWatch automatically. Operating system logs and metrics such as memory and disk use are visible only inside an instance, so the CloudWatch agent must collect them. For containers, Container Insights collects metrics and logs from Amazon ECS and Amazon EKS.
What the exam expects
Questions test when the agent is required, its permissions and configuration, and how to troubleshoot it; the difference between metric filters and subscription filters; querying with Logs Insights and Live Tail; and setting retention and encryption on log groups.
How this module is organised
Configuring Log Groups, Retention and Encryption explains log storage. Turning Logs into Metrics and Streams with Filters explains how logs become metrics and streams. Searching Logs with Logs Insights and Live Tail explains log analysis. Installing and Configuring the CloudWatch Agent and Monitoring Containers with Container Insights explain how data is collected from instances and containers.
- Configuring Log Groups, Retention and Encryption Lesson 1
- Turning Logs into Metrics and Streams with Filters Lesson 2
- Searching Logs with Logs Insights and Live Tail Lesson 3
- Installing and Configuring the CloudWatch Agent Lesson 4
- Monitoring Containers with Container Insights Lesson 5
- Practise and review
- Checkpoint Practice activities across the module
- Test your knowledge 5 questions