Back

Explore Courses Blog Tutorials Interview Questions
0 votes
3 views
in AWS by (19.1k points)

I can view the log using the following command.

aws logs get-log-events --log-group-name groupName --log-stream-name streamName --limit 100

what is the command to get a feature like tail -f so that   can see the log real time

closed

1 Answer

0 votes
by (44.4k points)
selected by
 
Best answer

You have multiple options for viewing aws log in real-time.

  1. awslogs - This is command line tool for querying groups, events and streams from CloudWatch logs.

  1. apilogs - apilogs is a fork of the excellent awslogs project with specific customizations suited to querying and streaming logs for Serverless APIs using Amazon API Gateway and AWS Lambda.

  1. saw - This is a multi-purpose tool for viewing CloudWatch logs in easy to read manner on the console.

  1. cwtail - This is a simple tool for viewing Amazon AWS CloudWatch Logs on the command line.

Choose the best tool, install and use it. This will surely solve your problem.

Related questions

Want to get 50% Hike on your Salary?

Learn how we helped 50,000+ professionals like you !

0 votes
1 answer

Browse Categories

...