英文:
How to trace run time console logs in ec2 instance
问题
AWS SSM send-command AWS-RunShellScript 通过 AWS 命令行界面发送命令到多个 EC2 实例。该命令运行 JS 脚本,该脚本会生成运行时控制台日志(JS);是否有办法在 EC2 中查看它?
英文:
I use the AWS SSM send-command AWS-RunShellScript through the AWS command line interface to send commands to a number of EC2 instances. The command runs the JS script which will generate run-time console logs (JS); is there a way to view it in EC2?
答案1
得分: 1
您可以使用Amazon CloudWatch Logs来监视、存储和访问Amazon Elastic Compute Cloud(Amazon EC2)实例的日志文件。CloudWatch Logs使您能够将来自所有系统、应用程序和您使用的AWS服务的日志集中在一个高度可扩展的服务中。
要安装Cloudwatch代理并配置您的Cloudwatch代理,请参考以下链接:
英文:
> You can use Amazon CloudWatch Logs to monitor, store, and access your
> log files from Amazon Elastic Compute Cloud (Amazon EC2) instances. CloudWatch Logs enables
> you to centralize the logs from all of your systems, applications, and
> AWS services that you use, in a single, highly scalable service.
To install Cloudwatch agent and configure your cloudwatch agent, Kindly refer
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。
评论