In this challenge, you will configure CloudWatch logs for a website so that you will be notified when anyone attempts to access the admin page of the website. First, you will verify that the web server is running, and then you will connect to the console of the Elastic Cloud Compute (EC2) instance by using EC2 Instance Connect. Next, you will configure the CloudWatch logs agent on the web server, and then you will configure a log filter that will become a custom metric. Finally, you will use the custom metric to create a CloudWatch alarm, and then you will test the alarm. Note: Once you begin the challenge lab, you will not be able to pause, save, or return to your challenge lab. Please ensure that you have set aside enough time to complete the challenge lab before you start.
Learning Objectives
In this challenge, you will configure CloudWatch logs for a website so that you will be notified when anyone attempts to access the admin page of the website. First, you will verify that the web server is running, and then you will connect to the console of the Elastic Cloud Compute (EC2) instance by using EC2 Instance Connect. Next, you will configure the CloudWatch logs agent on the web server, and then you will configure a log filter that will become a custom metric. Finally, you will use the custom metric to create a CloudWatch alarm, and then you will test the alarm. Note: Once you begin the challenge lab, you will not be able to pause, save, or return to your challenge lab. Please ensure that you have set aside enough time to complete the challenge lab before you start.