是否可以从命令行查看(拖尾)Elastic Beanstalk上托管的应用程序的日志?
我知道使用Heroku在Heroku中是可能的heroku logs -t
,但是不确定是否可以使用Beanstalk做到这一点。如果没有,关于如何最好地管理日志的任何建议或技巧?
您可以SSH到Elastic Beanstalk实例并尾随任何日志。或者,您可以将日志发布到S3。
例如,以下日志可用于Python环境:
/opt/python/log/httpd.out
/var/log/httpd/error_log
/var/log/cfn-hup.log
/opt/python/log/supervisord.log
/var/log/eb-tools.log
/var/log/httpd/access_log
/var/log/eb-cfn-init-call.log
/var/log/eb-publish-logs.log
/var/log/cfn-init.log
您可以在Web控制台中找到适用于您的环境的日志列表: Logs > Snapshot Logs > View log file
本文收集自互联网,转载请注明来源。
如有侵权,请联系 [email protected] 删除。
我来说两句