- Newest
- Most votes
- Most comments
Hello.
I think the following stackoverflow answers will be helpful.
https://stackoverflow.com/questions/77390043/how-to-stream-custom-logs-to-cloudwatch-from-al2023-instances
The solution to this is spread out in the guides so it is not very easy to assemble.
Here is the section from elastic beanstalk guide for custom cloudwatch config. Note the permissions required in the instance profile. https://docs.aws.amazon.com/elasticbeanstalk/latest/dg/customize-containers-cw.html
Also, in the logs section of the guide for writing the cloudwatch agent configuration file you will find the description of different properties required to set custom log groups and read from particular files into the log streams. https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/CloudWatch-Agent-Configuration-File-Details.html
Finally in the new Amazon Linux, the cloudwatch agent is already installed so you don't need the package command to install it in the ebextension configs.
Relevant content
- asked a month ago
- asked 3 months ago
- AWS OFFICIALUpdated a year ago
- AWS OFFICIALUpdated 5 months ago
- AWS OFFICIALUpdated 2 years ago
- AWS OFFICIALUpdated a year ago