0PricingLogin
AWS Security Academy · Lesson

Metric Filters for Security Events

Turn matching log lines into a metric you can watch.

From Logs to Metrics

Raw logs are rich but passive. A metric filter scans incoming log events in a log group, matches a pattern you define, and turns each match into a numeric data point in a CloudWatch metric. This bridges text logs and the metric world, where you can graph trends and, crucially, trigger alarms.

Why Filters Matter for Security

Security signals are often buried in ordinary logs: a failed login, an unauthorized API call, a console sign-in without MFA. A metric filter extracts exactly those lines and counts them. Once a security event is a metric, it becomes something you can watch and alert on automatically instead of hoping a human notices it scrolling by.

All lessons in this course

  1. Collecting Logs into CloudWatch
  2. Metric Filters for Security Events
  3. Creating Alarms and Notifications
  4. Detecting Root Account Usage
← Back to AWS Security Academy