Skip to content
This repository has been archived by the owner on Nov 5, 2024. It is now read-only.

AWS GO SDK's CLOUDWATCH MODULE LIMIT NOT RESPECTED IN cloudwatchlogs.StartQueryInput struct #66

Closed
3 tasks done
anees-tricon opened this issue Dec 22, 2020 · 5 comments
Closed
3 tasks done
Assignees
Labels
bug Something isn't working logs

Comments

@anees-tricon
Copy link

anees-tricon commented Dec 22, 2020

Confirm by changing [ ] to [x] below to ensure that it's a bug:

Describe the bug
Query Limit value mentioned in cloudwatchlogs.StartQueryInput Struct is not being respected in StartQuery method.
Example:-

	queryInputStruct := &cloudwatchlogs.StartQueryInput{
		LogGroupName: aws.String(programInput.LogGroupName),
		StartTime:    aws.Int64(queryInputData[0]),
		EndTime:      aws.Int64(queryInputData[1]),
		QueryString:  aws.String(programInput.LogQuery),
                Limit: aws.Int64(10000)
	}

This always retrieves only 1000 records irrespective of the mentioned limit. But If we mention the limit in query itself then it works.

Thanks in advance!!

Version of AWS SDK for Go?
Example: v1.29.22

  • get SDK version by printing the output of aws.SDKVersion in your code after importing "github.com/aws/aws-sdk-go/aws"
    latest stable one

Version of Go (go version)?
1.14.4

To Reproduce (observed behavior)
Steps to reproduce the behavior (please share code or minimal repo)

Expected behavior
A clear and concise description of what you expected to happen.

Additional context
Add any other context about the problem here.

@skotambkar skotambkar transferred this issue from aws/aws-sdk-go May 10, 2021
@NGL321 NGL321 added bug Something isn't working service-api This issue pertains to the AWS API labels May 24, 2021
@NGL321
Copy link

NGL321 commented May 24, 2021

Hi @anees-tricon,

We apologize for the delays on a response. Thank you for reporting this bug! It seems to be an issue with the service API for Cloudwatch and therefore affects all the SDKs. We will track it here in this repo. You can watch this issue for updates as a fix gets evaluated and implemented.

😸 😷

@RCHowell
Copy link

A ticket has been opened to the service team

@stobrien89 stobrien89 added logs and removed service-api This issue pertains to the AWS API labels Jul 26, 2021
@jmklix
Copy link
Member

jmklix commented Aug 13, 2021

P47842982

@jmklix jmklix self-assigned this Oct 11, 2021
@jmklix
Copy link
Member

jmklix commented Nov 15, 2023

This has been added to an internal queue. Closing this issue

@jmklix jmklix closed this as completed Nov 15, 2023
Copy link

This issue is now closed.

Comments on closed issues are hard for our team to see.
If you need more assistance, please either tag a team member or open a new issue that references this one.
If you wish to keep having a conversation with other community members under this issue feel free to do so.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working logs
Projects
None yet
Development

No branches or pull requests

5 participants