简体   繁体   English

检索弹性beantalk历史日志aws

[英]retrieve elastic beanstalk historical logs aws

We have hosted node js application in elastic beanstalk on AWS environment. 我们已经在AWS环境的Elastic beantalk中托管了node js应用程序。 We want to check the historical console log of node js. 我们要检查节点js的历史控制台日志。 So that we are downloading the logs from Elastic beanstalk application, but it's not containing the historical console log. 这样我们就可以从Elastic beanstalk应用程序中下载日志,但其中不包含历史控制台日志。 As we AWS environment hosting is new to us can anybody guide me how to retrieve those historical logs from aws? 由于AWS环境托管对我们来说是新手,有人可以指导我如何从AWS检索那些历史日志吗?

When you recycle your instances all the content of the instances is deleted. 回收实例时,实例的所有内容都会被删除。 For that reason you need to copy the logs out of your instance. 因此,您需要将日志复制到实例之外。 Amazon has cloudwatch logs where you can feed all the logs from all your servers. Amazon有cloudwatch日志,您可以在其中提供所有服务器的所有日志。 http://docs.aws.amazon.com/AmazonCloudWatch/latest/logs/WhatIsCloudWatchLogs.html http://docs.aws.amazon.com/AmazonCloudWatch/latest/logs/WhatIsCloudWatchLogs.html

I find a bit confusing the process to set it up with beanstalk. 我发现使用beantalk进行设置的过程有些混乱。 I wrote a post on how to do it for a php application: http://www.albertsola.pro/store-aws-beanstalk-symfony-and-apache-logs-in-cloudwatch-logs/ 我写了一篇关于如何为php应用程序执行操作的文章: http : //www.albertsola.pro/store-aws-beanstalk-symfony-and-apache-logs-in-cloudwatch-logs/

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM