QuestionQ94

VerifiedMonitoring and Logging

A company runs an application on Amazon EC2 instances. A DevOps engineer must aggregate the application log files into a central system so the company's application team can search them. A critical error message appears periodically in those log files. The DevOps engineer must email the application team whenever these error messages occur.

Which solution meets these requirements in the MOST operationally efficient manner?

Explanation

The unified CloudWatch agent collects application log files from EC2 instances into a CloudWatch Logs log group, providing centralized storage and search. A metric filter matches each critical error and converts matching log events into a custom CloudWatch metric. A CloudWatch alarm on that metric can publish to an Amazon SNS topic, and an email subscription to that topic sends the alert to the application team. This uses managed native services without requiring custom stream processing, instrumentation, or an additional search cluster.

Learn more

Community Discussion

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