SSL problem with logstash newrelic output plugin


(Charek Chen) #1

Hello
I am running logstash 5.0.2 and using output plugin new relic 0.9.x
My output config is like the following

newrelic {
account_id => "MyAccountId1111111111"
insert_key => "myInsertKeyXYZ"
event_type => "Myevent"
}	

When I sent data, I am getting SSL errors

23:07:11.510 [[main]>worker6] WARN logstash.outputs.newrelic - Failed to flush outgoing items {:outgoing_count=>1, :exception=>"OpenSSL::SSL::SSLError", :backtrace=>["org/jruby/ext/openssl/SSLSocket.java:215:in connect'", "/usr/share/logstash/vendor/jruby/lib/ruby/1.9/net/http.rb:800:inconnect'", "org/jruby/ext/timeout/Timeout.java:98:in timeout'", "/usr/share/logstash/vendor/jruby/lib/ruby/1.9/net/http.rb:800:inconnect'", "/usr/share/logstash/vendor/jruby/lib/ruby/1.9/net/http.rb:756:in do_start'", "/usr/share/logstash/vendor/jruby/lib/ruby/1.9/net/http.rb:745:instart'", "/usr/share/logstash/vendor/jruby/lib/ruby/1.9/net/http.rb:1293:in request'", "/usr/share/logstash/vendor/bundle/jruby/1.9/gems/logstash-output-newrelic-0.9.1/lib/logstash/outputs/newrelic.rb:212:insend_to_insights'", "/usr/share/logstash/vendor/bundle/jruby/1.9/gems/logstash-output-newrelic-0.9.1/lib/logstash/outputs/newrelic.rb:147:in flush'", "/usr/share/logstash/vendor/bundle/jruby/1.9/gems/stud-0.0.22/lib/stud/buffer.rb:219:inbuffer_flush'", "org/jruby/RubyHash.java:1342:in each'", "/usr/share/logstash/vendor/bundle/jruby/1.9/gems/stud-0.0.22/lib/stud/buffer.rb:216:inbuffer_flush'", "/usr/share/logstash/vendor/bundle/jruby/1.9/gems/stud-0.0.22/lib/stud/buffer.rb:159:in buffer_receive'", "/usr/share/logstash/vendor/bundle/jruby/1.9/gems/logstash-output-newrelic-0.9.1/lib/logstash/outputs/newrelic.rb:136:inreceive'", "/usr/share/logstash/logstash-core/lib/logstash/outputs/base.rb:92:in multi_receive'", "org/jruby/RubyArray.java:1613:ineach'", "/usr/share/logstash/logstash-core/lib/logstash/outputs/base.rb:92:in multi_receive'", "/usr/share/logstash/logstash-core/lib/logstash/output_delegator_strategies/legacy.rb:19:inmulti_receive'", "/usr/share/logstash/logstash-core/lib/logstash/output_delegator.rb:42:in multi_receive'", "/usr/share/logstash/logstash-core/lib/logstash/pipeline.rb:297:inoutput_batch'", "org/jruby/RubyHash.java:1342:in each'", "/usr/share/logstash/logstash-core/lib/logstash/pipeline.rb:296:inoutput_batch'", "/usr/share/logstash/logstash-core/lib/logstash/pipeline.rb:252:in worker_loop'", "/usr/share/logstash/logstash-core/lib/logstash/pipeline.rb:225:instart_workers'"]}

If I use http output to manually sent to NR, eg
http {
http_method => "post"
url => "https://insights-collector.newrelic.com/v1/accounts/MyAccountId1111111111/events"
headers => { "Content-Type" => "application/json"
"X-Insert-Key" => "myInsertKeyXYZ"
}
This is fine.
I also had this issue on logstash 2.4 so I tried upgrade to 5x. Suggestions on further debugging or resolutions?

Thanks


(system) #2

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.