Closed cherweg closed 6 years ago
This is the "crash line": https://github.com/cherweg/logstash-input-s3-sns-sqs/blob/783a5f5fa5a1e26f4c529daac70971fcb68033ab/lib/logstash/inputs/s3snssqs.rb#L134 It seems that your message body has no Message inside, so the Parser crashes...
You could set logstash to debug:
/opt/logstash/bin/logstash -f yourconf.conf -v --debug
This should log the messages ...
https://github.com/cherweg/logstash-input-s3-sns-sqs/blob/783a5f5fa5a1e26f4c529daac70971fcb68033ab/lib/logstash/inputs/s3snssqs.rb#L131
So is this plugin expected to be working at the moment, just in an alpha phase? Using these variables I was able to advance the plugin, but now receive this error:
error: no implicit conversion of nil into String\n Exception: TypeError\n Stack: json/ext/Parser.java:173:ininitialize'\njson/ext/Parser.java:150:in new'\n/usr/share/logstash/vendor/bundle/jruby/2.3.0/gems/json-1.8.6-java/lib/json/common.rb:155:inparse'\n/usr/share/logstash/vendor/bundle/jruby/2.3.0/gems/logstash-input-s3-sns-sqs-1.1.6/lib/logstash/inputs/s3snssqs.rb:134:in handle_message'\n/usr/share/logstash/vendor/bundle/jruby/2.3.0/gems/logstash-input-s3-sns-sqs-1.1.6/lib/logstash/inputs/s3snssqs.rb:220:inblock in run'\n/usr/share/logstash/vendor/bundle/jruby/2.3.0/gems/aws-sdk-resources-2.3.22/lib/aws-sdk-resources/services/sqs/queue_poller.rb:413:in block in yield_messages'\norg/jruby/RubyArray.java:1734:ineach'\n/usr/share/logstash/vendor/bundle/jruby/2.3.0/gems/aws-sdk-resources-2.3.22/lib/aws-sdk-resources/services/sqs/queue_poller.rb:412:in yield_messages'\n/usr/share/logstash/vendor/bundle/jruby/2.3.0/gems/aws-sdk-resources-2.3.22/lib/aws-sdk-resources/services/sqs/queue_poller.rb:405:inblock in process_messages'\norg/jruby/RubyKernel.java:1114:in catch'\n/usr/share/logstash/vendor/bundle/jruby/2.3.0/gems/aws-sdk-resources-2.3.22/lib/aws-sdk-resources/services/sqs/queue_poller.rb:404:inprocess_messages'\n/usr/share/logstash/vendor/bundle/jruby/2.3.0/gems/aws-sdk-resources-2.3.22/lib/aws-sdk-resources/services/sqs/queue_poller.rb:336:in block in poll'\norg/jruby/RubyKernel.java:1292:inloop'\n/usr/share/logstash/vendor/bundle/jruby/2.3.0/gems/aws-sdk-resources-2.3.22/lib/aws-sdk-resources/services/sqs/queue_poller.rb:331:in block in poll'\norg/jruby/RubyKernel.java:1114:incatch'\n/usr/share/logstash/vendor/bundle/jruby/2.3.0/gems/aws-sdk-resources-2.3.22/lib/aws-sdk-resources/services/sqs/queue_poller.rb:330:in poll'\n/usr/share/logstash/vendor/bundle/jruby/2.3.0/gems/logstash-input-s3-sns-sqs-1.1.6/lib/logstash/inputs/s3snssqs.rb:219:inblock in run'\n/usr/share/logstash/vendor/bundle/jruby/2.3.0/gems/logstash-input-s3-sns-sqs-1.1.6/lib/logstash/inputs/s3snssqs.rb:235:in run_with_backoff'\n/usr/share/logstash/vendor/bundle/jruby/2.3.0/gems/logstash-input-s3-sns-sqs-1.1.6/lib/logstash/inputs/s3snssqs.rb:218:inrun'\n/usr/share/logstash/logstash-core/lib/logstash/pipeline.rb:516:in inputworker'\n/usr/share/logstash/logstash-core/lib/logstash/pipeline.rb:509:inblock in start_input'"`