A retail company's security team wants to monitor log files generated by an application running on Amazon EC2 instances. They need to aggregate these logs in a central location, monitor them for specific patterns (such as failed authentication attempts), and send real-time alerts to the team when a threshold is exceeded. Which AWS service should the company use to meet these requirements?
- AAWS CloudTrail
- BAmazon Inspector
- Amazon CloudWatchAnswer
- DAWS Support (since monitoring and auditing application-level log files is the responsibility of AWS under the Shared Responsibility Model)
Answer
Amazon CloudWatch is the service that should be used because it collects and aggregates application logs, monitors them for patterns, and triggers alarms.
Amazon CloudWatch is designed to collect logs, metrics, and events from AWS resources and applications. By installing the CloudWatch agent on Amazon EC2 instances, the security team can push custom application logs to CloudWatch Logs, use metric filters to look for specific patterns like failed login attempts, and set up CloudWatch Alarms to send real-time notifications.
Step-by-Step Solution
Key Concept
Amazon CloudWatch logs performance metrics, application logs, and resource metrics, allowing users to configure alarms for real-time monitoring and alerting.
Estimated Time:1m 30s