Back
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
You have multiple options for viewing aws log in real-time.
awslogs - This is command line tool for querying groups, events and streams from CloudWatch logs.
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.
saw - This is a multi-purpose tool for viewing CloudWatch logs in easy to read manner on the console.
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.
Learn how we helped 50,000+ professionals like you !
30.9k questions
32.9k answers
500 comments
665 users