Elastic Beanstalks

0

How can I vew the console output for a nodejs app using docker on Elastic Beanstalks?

Thanks

已提问 2 年前237 查看次数
1 回答
0

You can view the logs generated by your application in the console through the Logs section of your environment. Once you click on Request Logs, you can download output from various log files. You can also use the eb logs command in the Elastic Beanstalk CLI.

https://docs.aws.amazon.com/elasticbeanstalk/latest/dg/using-features.logging.html

In a Docker environment, you should be able to see any logs sent to stdout in the /var/log/eb-docker/containers/eb-current-app/* files. If your app logs to a file, it might be worth looking into how you can extend the log configuration: https://docs.aws.amazon.com/elasticbeanstalk/latest/dg/using-features.logging.html#health-logs-extend

Ed
已回答 2 年前

您未登录。 登录 发布回答。

一个好的回答可以清楚地解答问题和提供建设性反馈,并能促进提问者的职业发展。

回答问题的准则