简体   繁体   中英

How do I tail AWS CloudWatch Log Stream logs?

I'm using the CloudWatch logs service to store logs coming from containerized applications, in the other hand I developed a NodeJS script using the AWS SDK to get those logs.

I'm looking for a way to live tail the logs, not only to send requests and get logs but also to open a stream and get new logs.

You can do this via the AWS command line, here's an example:

$ aws logs tail /my/log/group/name --follow

References:

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM