Verifying AWS CloudWatch Logs

Asked 1 years ago, Updated 1 years ago, 105 views

I would like to check the error log of nginx running on EC2 in CloudWatch.

Send Nginx access and error logs to CloudWatch

I proceeded with the above link, but the nginx related log group was not added.
Thank you for your help.

/etc/awslogs/awslogs.conf
Enter a description of the image here

CloudWatch Current Log Group
Enter a description of the image here

aws aws-cloudwatch

2022-09-29 21:47

1 Answers

There appears to be some error in /var/log/awslogs.log."For example, the ""Attach a policy to an IAM role"" link may not have been executed."Of course, you cannot write logs without access.

Note that the awslogs referenced in the link are deprecated.On the document

Older agents require Python 2.7, 3.0, and 3.3.Since your current EC2 instance does not use these versions of Python, and these versions are deprecated and no longer patched, it is highly recommended that you migrate to the integrated CloudWatch agent.

It is said that


2022-09-29 21:47

If you have any answers or tips


© 2024 OneMinuteCode. All rights reserved.