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.
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
© 2024 OneMinuteCode. All rights reserved.