Hosting » AWS » How do I view AWS logs?

How do I view AWS logs?

Last updated on September 25, 2022 @ 5:35 pm

AWS logs can be viewed in a variety of ways, depending on the type of log and the tool used to view it. For example, Amazon CloudWatch logs can be viewed using the CloudWatch console, the AWS log command-line tool, or the AWS log-viewer command-line tool.

PRO TIP: When viewing AWS logs, be sure to select the correct log group and log stream. Incorrectly selecting either of these could result in viewing logs that are not relevant to your inquiry.

You can also use the AWS CloudWatch Events service to view events that occurred in the past, or the AWS CloudWatch Logs service to view logs from all of the Amazon EC2 instances in your account. Finally, you can use the Amazon S3 service to view logs from Amazon S3 buckets.

To view logs from Amazon EC2 instances, use the AWS ec2 instance-logs command-line tool. To view logs from Amazon S3 buckets, use the s3cmd command-line tool.

Kathy McFarland

Kathy McFarland

Devops woman in trade, tech explorer and problem navigator.