DEV Community

Jakub T
Jakub T

Posted on

3 3

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)

A Workflow Copilot. Tailored to You.

Pieces.app image

Our desktop app, with its intelligent copilot, streamlines coding by generating snippets, extracting code from screenshots, and accelerating problem-solving.

Read the docs