DEV Community

Jakub T
Jakub T

Posted on

Tail AWS CloudWatch logs

Sometimes it is very useful to be able to stream remote logs from CloudWatch this is very easy with the AWS CLI tail command.

Basic version of the command:

aws logs tail log_group_name --tail since 1h --follow
Enter fullscreen mode Exit fullscreen mode

we can also filter by the log stream name or its prefix.

aws logs  tail log_group_name --log-stream-name-prefix web --since 1h --follow
Enter fullscreen mode Exit fullscreen mode

Top comments (0)