如何在EC2实例中跟踪运行时控制台日志

huangapple go评论59阅读模式
英文:

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

huangapple
  • 本文由 发表于 2023年2月6日 14:57:58
  • 转载请务必保留本文链接:https://go.coder-hub.com/75358211.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定