Tech Automation
Tech Automation

Reputation: 63

How to trace run time console logs in ec2 instance

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?

Upvotes: 0

Views: 685

Answers (1)

Makendran G
Makendran G

Reputation: 144

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

Upvotes: 1

Related Questions