-
Notifications
You must be signed in to change notification settings - Fork 560
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
InvalidParameterException: Log event too large #6164
Comments
HI @hajinsuha1 - thanks for reaching out. This's actually more of service related rather than SDK, I would reach out on https://github.com/aws/amazon-cloudwatch-logs-for-fluent-bit or refer to comments on this issue: aws/amazon-cloudwatch-logs-for-fluent-bit#85 |
Thanks for the response @aBurmeseDev. I guess I was wondering if the same solution of truncating rather than erroring could be used in the SDK. In my use case, we are using the aws-sdk-js-v3 but we're finding logs being dropped due to the log size exceeding the limit. It would be great if instead the message was truncated so that logs don't get dropped |
@hajinsuha1 - thanks for your patience. This was discussed by the team and unfortunately, this won't be considered at this time. Please reach out to https://github.com/aws/amazon-cloudwatch-logs-for-fluent-bit or refer to aws/amazon-cloudwatch-logs-for-fluent-bit#85 Closing the issue, please reach out again if you have any other SDK related questions! |
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs and link to relevant comments in this thread. |
Checkboxes for prior research
Describe the bug
Hi,
we are using the PutLogEventsCommand from
@aws-sdk/client-cloudwatch-logs
in a Node and get the following error sometimesI know there is a limit of 256kb per log event.
Is it possible to handle this issue via truncation like in aws/amazon-cloudwatch-logs-for-fluent-bit#98
SDK version number
@aws-sdk/client-cloudwatch-logs@3.552.0
Which JavaScript Runtime is this issue in?
Node.js
Details of the browser/Node.js/ReactNative version
v18.20.2
Reproduction Steps
Observed Behavior
Expected Behavior
Log message is truncated to the limit and successfully forwarded
Possible Solution
Truncate the log instead of raising an error and failing the request
Additional Information/Context
No response
The text was updated successfully, but these errors were encountered: