Elastic Beanstalk Log Path Not Updating When Docker Container Changes

蓝咒 提交于 2019-12-11 07:49:34

问题


When I launch an ElasticBeanstalk instance with docker I get log streaming to cloudwatch in a group named /aws/elasticbeanstalk/{app_name}/var/log/eb-docker/containers/eb-current-app/stdouterr.log. If I push an update to this beanstalk app the docker container is terminated, and a new docker container is launched in it's place. The issue is that when this happens, logs are being generated under the new docker container id, but they are not streaming to cloudwatch.

How can I update my docker container and continue streaming logs to cloudwatch?


回答1:


It might be due to your log messages having the same hash so the Cloud Watch Agent is getting confused. See No logs appear on Cloudwatch log group for elastic beanstalk environment



来源:https://stackoverflow.com/questions/57464585/elastic-beanstalk-log-path-not-updating-when-docker-container-changes

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!