Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Paging from CloudWatch Stymies Library #863

Open
SethO opened this issue Oct 31, 2023 · 0 comments
Open

Paging from CloudWatch Stymies Library #863

SethO opened this issue Oct 31, 2023 · 0 comments

Comments

@SethO
Copy link

SethO commented Oct 31, 2023

v4.0.6

I'm seeing paging results from the CloudWatch toHaveLog() matcher. Using default time of one hour. Here's an example of a cloudWatchLogs.filterLogEvents() return with a nextToken:

{
  events: [
    {
      logStreamName: '2023/10/31/[$LATEST]3998d19732dc45e4a031419cc461562d',
      timestamp: 1698716448251,
      message: '[this is not the message you are looking for]\n',
      ingestionTime: 1698716449742,
      eventId: '37882642676998482009100965194064775797471706186071408642'
    }
  ],
  searchedLogStreams: [
    
  ],
  nextToken: 'Bxkq6kVGFtq2y_MoigeqscPOdhXVbhiVtLoAmXb5jCrGNG3oJwptg8VF1zEUyfwpBFOEV9qaY_2ur816UYZk3Iv-_OKdTpV0sOjuuuo6lhHo6MAkaWO_XYl_s_a8JomVJlQ5mnH80rmZdtJHEP5zFJLyv-cyetGGKGsMHIpqCaNSJ94TSv_-4ALOA_AxbxH5uBu73PEjdGmaFPD6HKVXYA_u7kNYArLsZglRQIPdnBZD_4npKJ5sPWHQlKud3w4BDbTfNfLmTSOh_0apMGhYRA'
}

This happens on a log group with a 24-hour retention. I just need to run my test a couple of times to put a few logs in there and I can generate a nextToken almost at will.

FWIW, I can drop the version back to v1.1.6 and I get no error. Same log group. I have no idea what's changed, but will update here if I find anything suspicious.

-Seth

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant