Custom Logging Using CloudWatch and CloudWatch Logs
In this hands-on lab, we will configure custom CloudWatch logging using the CloudWatch agent and CloudWatch alarms. We will cover the configuration of the CloudWatch monitoring agent to monitor the occurrence of SSH attempts to our EC2 instance and create an alarm for frequent invalid authentication attempts. We will also configure monitoring for our Memory Used percentage in CloudWatch. This is only one small example of CloudWatch's potential. We could easily monitor our application logs and fire Lambda functions or SNS topics based upon certain metric activity.