- Lab
-
Libraries: If you want this lab, consider one of these libraries.
- Cloud
Create Actionable Amazon CloudWatch Log Alarms and Reduce Operational Noise
CloudWatch logs provide a valuable source of live and historic data about your AWS services, and this data can be taken to the next level when paired with appropriate metric filters and CloudWatch alarms, ensuring you receive alerts when things go wrong. To accomplish this in the lab, you’ll review and filter the logs of an API service, creating an alarm that triggers an SNS topic when multiple 500 errors are received in a short amount of time.
Lab Info
Table of Contents
-
Challenge
Create SNS Topic for Alerting
Create a Simple Notification Service topic for errors with the inventory API service. Do not yet assign the topic a subscription.
-
Challenge
Create a Metrics Filter to Filter CloudWatch Logs for Errors
Using a CloudWatch Metrics Filter, filter for any 500 errors in the inventory API access logs and then create a reusable metric based on this filter.
-
Challenge
Create a CloudWatch Alarm that Triggers Based on Sensible Error Rates
Using the metric created in the previous objective, create a CloudWatch alarm subscribed to the created SNS topic. Ensure the alarm triggers only when there are repeated failures in a short period of time. Once created, check the alarm state.
About the author
Real skill practice before real-world application
Hands-on Labs are real environments created by industry experts to help you learn. These environments help you gain knowledge and experience, practice without compromising your system, test without risk, destroy without fear, and let you learn from your mistakes. Hands-on Labs: practice your skills before delivering in the real world.
Learn by doing
Engage hands-on with the tools and technologies you’re learning. You pick the skill, we provide the credentials and environment.
Follow your guide
All labs have detailed instructions and objectives, guiding you through the learning process and ensuring you understand every step.
Turn time into mastery
On average, you retain 75% more of your learning if you take time to practice. Hands-on labs set you up for success to make those skills stick.