Closed buettner123 closed 3 years ago
@buettner123 any progress?
@Purneau still waiting for a response here and postponed the update for now. Might try again with logstash 7.10 and openjdk 14 next year or start searching for workarounds.
@buettner123 For anyone running into this in the future:
We reproduced (logstash 7.10.1 with packaged Java 11) that this error is thrown when the connection is inactive for longer than the client_inactivity_timeout
value of the beats
input plugin (defaults to 60 seconds).
We also observed that although the error is thrown, the data is still successfully sent over a fresh connection.
We increased client_inactivity_timeout
to a value larger than our transfer interval.
It would be nice if the connection closure would be handled correctly by the lumberjack output plugin or that we could specify the same timeout value on the output plugin side, so that no connection attempt is being made over the old connection.
@Purneau Thanks for the hint, will check this and report if it also fixes the issue for me!
Increasing the client_inactivity_timeout
on the downstream beats input solved the issue for us as well.
I have different intervals on different types of data and it seems like the 60 secs exactly overlapped with one of the intervals.
Faced the message again after rebooting the machine but it only appeared once and the data is successfully sent afterwards.
Closing the issue, thanks again for the hint @Purneau
Hi, we are using the logstash lumberjack output plugin in order to send logs collected by metricbeat to some other logstash instance. When trying to upgrade to openjdk 11 we are facing issues connecting:
downstream:
input { beats { id => "lumberjack" codec => json port => 5000 ssl_certificate => "..." ssl_key => "..." ssl => true }
}
java -version openjdk version "11.0.7" 2020-04-14 LTS OpenJDK Runtime Environment 18.9 (build 11.0.7+10-LTS) waOpenJDK 64-Bit Server VM 18.9 (build 11.0.7+10-LTS, mixed mode, sharing)
[ERROR][logstash.outputs.lumberjack] Client write error, trying connect {:e=>#, :backtrace=>["org/jruby/ext/openssl/SSLSocket.java:950:in
syswrite'", "/usr/share/logstash/vendor/bundle/jruby/2.5.0/gems/jls-lumberjack-0.0.26/lib/lumberjack/client.rb:116:in
send_payload'", "/usr/share/logstash/vendor/bundle/jruby/2.5.0/gems/jls-lumberjack-0.0.26/lib/lumberjack/client.rb:132:inwrite_sync'", "/usr/share/logstash/vendor/bundle/jruby/2.5.0/gems/jls-lumberjack-0.0.26/lib/lumberjack/client.rb:42:in
write'", "/usr/share/logstash/vendor/bundle/jruby/2.5.0/gems/logstash-output-lumberjack-3.1.7/lib/logstash/outputs/lumberjack.rb:65:inflush'", "/usr/share/logstash/vendor/bundle/jruby/2.5.0/gems/stud-0.0.23/lib/stud/buffer.rb:219:in
block in buffer_flush'", "org/jruby/RubyHash.java:1419:ineach'", "/usr/share/logstash/vendor/bundle/jruby/2.5.0/gems/stud-0.0.23/lib/stud/buffer.rb:216:in
buffer_flush'", "/usr/share/logstash/vendor/bundle/jruby/2.5.0/gems/stud-0.0.23/lib/stud/buffer.rb:159:inbuffer_receive'", "/usr/share/logstash/vendor/bundle/jruby/2.5.0/gems/logstash-output-lumberjack-3.1.7/lib/logstash/outputs/lumberjack.rb:52:in
block in register'", "/usr/share/logstash/vendor/bundle/jruby/2.5.0/gems/logstash-codec-json-3.0.5/lib/logstash/codecs/json.rb:42:inencode'", "/usr/share/logstash/logstash-core/lib/logstash/codecs/delegator.rb:31:in
block in encode'", "org/logstash/instrument/metrics/AbstractSimpleMetricExt.java:45:intime'", "org/logstash/instrument/metrics/AbstractNamespacedMetricExt.java:44:in
time'", "/usr/share/logstash/logstash-core/lib/logstash/codecs/delegator.rb:30:inencode'", "/usr/share/logstash/vendor/bundle/jruby/2.5.0/gems/logstash-output-lumberjack-3.1.7/lib/logstash/outputs/lumberjack.rb:59:in
receive'", "/usr/share/logstash/logstash-core/lib/logstash/outputs/base.rb:89:inblock in multi_receive'", "org/jruby/RubyArray.java:1792:in
each'", "/usr/share/logstash/logstash-core/lib/logstash/outputs/base.rb:89:inmulti_receive'", "org/logstash/config/ir/compiler/OutputStrategyExt.java:118:in
multi_receive'", "org/logstash/config/ir/compiler/AbstractOutputDelegatorExt.java:101:inmulti_receive'", "/usr/share/logstash/logstash-core/lib/logstash/java_pipeline.rb:239:in
block in start_workers'"]}