QuestionQ42

VerifiedMonitoring and Logging

A company operates a web application on Amazon Elastic Kubernetes Service (Amazon EKS). The company uses Amazon CloudFront to distribute the application and recently enabled AWS WAF. The company configured Amazon CloudWatch Logs to send logs to an aws-waf-logs log group.

The company needs a DevOps engineer to receive alerts when blocked traffic changes suddenly. The company does not want alerts for other changes in AWS WAF log behavior. The company will tune AWS WAF rules over time.

The DevOps engineer is already subscribed to an Amazon Simple Notification Service (Amazon SNS) topic in the environment.

Which solution meets these requirements?

Explanation

A metric filter that matches only blocked AWS WAF requests produces a metric limited to blocked-traffic volume. A CloudWatch anomaly-detection alarm learns the normal range of that metric and alerts when its value deviates unexpectedly, while adapting as normal blocked-request levels change due to WAF rule tuning. It avoids monitoring unrelated patterns or anomalies elsewhere in the WAF logs.

Learn more

Community Discussion

No comments yet. Be the first to start the discussion!