-
Notifications
You must be signed in to change notification settings - Fork 145
Increase max event size to 1MB #265
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
Increase max event size to 1MB #265
Conversation
Thanks for your contribution! It looks like there are two types of size limits: one event size limit and an overall size limit.
Sorry I'm not familiar with CloudWatch. |
I think CI error should be fixed by #266 |
Makes sense! According the the limit docs: https://docs.aws.amazon.com/AmazonCloudWatch/latest/logs/cloudwatch_limits_cwl.html Batch size - 1,048,576 bytes It's the log event size that has been updated last month |
Thanks @Watson1978 !
I see! Thanks! It seems that we need to change this test. fluent-plugin-cloudwatch-logs/test/plugin/test_out_cloudwatch_logs.rb Lines 968 to 982 in f3bc56e
However, some CIs have passed without this test failing... |
I understand. |
@amykelly diff --git a/test/plugin/test_out_cloudwatch_logs.rb b/test/plugin/test_out_cloudwatch_logs.rb
index d849876..0977d9e 100644
--- a/test/plugin/test_out_cloudwatch_logs.rb
+++ b/test/plugin/test_out_cloudwatch_logs.rb
@@ -974,11 +974,11 @@ class CloudwatchLogsOutputTest < Test::Unit::TestCase
@log_level debug
EOC
d.run(default_tag: fluentd_tag) do
- d.feed(time, {'message' => '*' * 256 * 1024})
+ d.feed(time, {'message' => '*' * 1024 * 1024})
end
logs = d.logs
- assert(logs.any?{|log| log =~ /Log event in .* discarded because it is too large: 262184 bytes exceeds limit of 262144/})
+ assert(logs.any?{|log| log =~ /Log event in .* discarded .*/})
end
def test_do_not_emit_empty_record |
8de2831
to
8aaaec3
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks!! @amykelly @Watson1978
@amykelly We have released v0.15.0! |
AWS has increased the max event size to 1 MB: AWS News
This is already reflected in the code in some places: Line 376 and Line 70
However, the variable MAX_EVENT_SIZE has not been updated. As such, we are still seeing errors reporting that the log event is too large.