logstash-plugins / logstash-output-sqs

Apache License 2.0
4 stars 22 forks source link

logstash.outputs.sqs Failed to flush outgoing items #22

Open qhh0205 opened 7 years ago

qhh0205 commented 7 years ago

Hello everyone, i use sqs as logstash output. But logstash start after a while on the error, the error message is as follows: [2017-02-21T21:50:28,548][WARN ][logstash.outputs.sqs ] Failed to flush outgoing items {:outgoing_count=>10, :exception=>"AWS::SQS::Errors::BatchRequestTooLong", :backtrace=>["/home/ec2-user/logstash/logstash-5.0.0/vendor/bundle/jruby/1.9/gems/aws-sdk-v1-1.66.0/lib/aws/core/client.rb:375:in return_or_raise'", "/home/ec2-user/logstash/logstash-5.0.0/vendor/bundle/jruby/1.9/gems/aws-sdk-v1-1.66.0/lib/aws/core/client.rb:476:inclient_request'", "(eval):3:in send_message_batch'", "/home/ec2-user/logstash/logstash-5.0.0/vendor/bundle/jruby/1.9/gems/aws-sdk-v1-1.66.0/lib/aws/sqs/queue.rb:551:inbatch_send'", "/home/ec2-user/logstash/logstash-5.0.0/vendor/bundle/jruby/1.9/gems/logstash-output-sqs-3.0.2/lib/logstash/outputs/sqs.rb:129:in flush'", "/home/ec2-user/logstash/logstash-5.0.0/vendor/bundle/jruby/1.9/gems/stud-0.0.22/lib/stud/buffer.rb:219:inbuffer_flush'", "org/jruby/RubyHash.java:1342:in each'", "/home/ec2-user/logstash/logstash-5.0.0/vendor/bundle/jruby/1.9/gems/stud-0.0.22/lib/stud/buffer.rb:216:inbuffer_flush'", "/home/ec2-user/logstash/logstash-5.0.0/vendor/bundle/jruby/1.9/gems/stud-0.0.22/lib/stud/buffer.rb:193:in buffer_flush'", "/home/ec2-user/logstash/logstash-5.0.0/vendor/bundle/jruby/1.9/gems/stud-0.0.22/lib/stud/buffer.rb:159:inbuffer_receive'", "/home/ec2-user/logstash/logstash-5.0.0/vendor/bundle/jruby/1.9/gems/logstash-output-sqs-3.0.2/lib/logstash/outputs/sqs.rb:121:in receive'", "/home/ec2-user/logstash/logstash-5.0.0/logstash-core/lib/logstash/outputs/base.rb:92:inmulti_receive'", "org/jruby/RubyArray.java:1613:in each'", "/home/ec2-user/logstash/logstash-5.0.0/logstash-core/lib/logstash/outputs/base.rb:92:inmulti_receive'", "/home/ec2-user/logstash/logstash-5.0.0/logstash-core/lib/logstash/output_delegator_strategies/legacy.rb:19:in multi_receive'", "/home/ec2-user/logstash/logstash-5.0.0/logstash-core/lib/logstash/output_delegator.rb:42:inmulti_receive'", "/home/ec2-user/logstash/logstash-5.0.0/logstash-core/lib/logstash/pipeline.rb:297:in output_batch'", "org/jruby/RubyHash.java:1342:ineach'", "/home/ec2-user/logstash/logstash-5.0.0/logstash-core/lib/logstash/pipeline.rb:296:in output_batch'", "/home/ec2-user/logstash/logstash-5.0.0/logstash-core/lib/logstash/pipeline.rb:252:inworker_loop'", "/home/ec2-user/logstash/logstash-5.0.0/logstash-core/lib/logstash/pipeline.rb:225:in `start_workers'"]}

I checked a lot of information did not solve, do not know where the problem lies, cay anyone tell me what's the reason? thanks.

joshuaspence commented 7 years ago

This issue should have been fixed in version 4.0.0

joshuaspence commented 7 years ago

Specifically, see #20.