Monitoring and Troubleshooting
This section focuses on how to create logging and alerts for the various services in AWS, followed by some common troubleshooting methods you may be called on to use as a cloud network engineer.
Log Creation for CloudWatch and S3
Logs must be exported somewhere for analysis. No matter what service is being logged, CloudWatch requires a logging group to be created to serve as a container and target for those logs. Commonly, log groups are segregated by function or service.
Creating a log group in CloudWatch is very simple. It can be done via the AWS CLI, SDK, or API, but in this case, it will be done using the AWS console. If the Trailcats administrators found themselves in a situation where a particular server or AWS service needed to be logged for diagnosis of an intermittent, recurring issue, for example, they would need to create a CloudWatch log group to serve as the target to collect these logs. Here is how they could do that:
- From...