aws / aws/aws-toolkit-vscode

CloudWatch Log Stream does not show the most recent log events

Open
#4,050 1 comment 0 reactions 0 assignees View on GitHub
bug service:cloudwatch
Dominant language
TypeScript
Stars
2k
Forks
807
Avg merge
10h 12m
Merged PRs (30d)
7

Description

## Problem

The CloudWatch Log Stream always show the **oldest** log events rather than the most recent ones.

## Steps to reproduce the issue

1. Select a region (ap-southeast-2) and go to 'CloudWatch Logs'.
2. Choose a log group and select a log stream.
3. Review the loaded log events.

## Expected behavior

As per [AWS doc](https://docs.aws.amazon.com/toolkit-for-vscode/latest/userguide/working-CloudWatch-log-events.html):

> The Log Stream editor initially loads a batch of the most recent 10,000 lines of log events or 1 MB of log data (whichever is smaller).

## System details (run the `AWS: About Toolkit` command)

- OS: Darwin arm64 23.1.0
- Visual Studio Code version: 1.84.2
- AWS Toolkit version: 1.98.0

Contributor guide

Open the contributing guide

Research direction

Reproduce the issue through the CloudWatch Logs view by selecting a region, log group, and log stream, and use the AWS: About Toolkit command to confirm the environment. Trace the log-stream loading behavior from that entry point; done means the editor initially shows the most recent events, up to AWS's 10,000-line or 1 MB limit.

Written by the indexing model from the issue text.

Assessment

Tech stack
aws, typescript, vscode
Domain
cloud, observability-sre
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.