Viewing CloudWatch log groups and log streams by using the AWS Toolkit for Visual Studio Code - AWS Toolkit for VS Code

Viewing CloudWatch log groups and log streams by using the AWS Toolkit for Visual Studio Code

A log stream is a sequence of log events that share the same source. Each separate source of logs into CloudWatch Logs makes up a separate log stream.

A log group is a group of log streams that share the same retention, monitoring, and access control settings. You can define log groups and specify which streams to put into each group. There is no limit on the number of log streams that can belong to one log group.

For more information, see Working with Log Groups and Log Streams in the Amazon CloudWatch User Guide.

Viewing log groups and log streams with the CloudWatch Logs node

  1. In VS Code, choose View, Explorer to open AWS Explorer.

  2. Click the CloudWatch Logs node to expand the list of log groups.

    The log groups for the current AWS Region are displayed under the CloudWatch Logs node.

  3. To view the log streams in a log group, right-click the name of the log group, and then choose View Log Stream.

    
            Viewing log streams in a CloudWatch log group in AWS Explorer
  4. From the Command Palette, select a log stream from the group to view.

    Note

    The Command Palette displays a timestamp for the last event in each stream.

    The Log Stream editor launches to display the stream's log events.