Duplicate entries are posted when the following error happens.
Client write error, trying connect {:e=>#<IOError: Connection reset by peer>, :backtrace=>["org/jruby/ext/openssl/SSLSocket.java:950:in syswrite'", "/root/logstash-6.4.0/vendor/bundle/jruby/2.3.0/gems/jls-lumberjack-0.0.26/lib/lumberjack/client.rb:107:in
send_window_size'", "/root/logstash-6.4.0/vendor/bundle/jruby/2.3.0/gems/jls-lumberjack-0.0.26/lib/lumberjack/client.rb:127:in write_sync'", "/root/logstash-6.4.0/vendor/bundle/jruby/2.3.0/gems/jls-lumberjack-0.0.26/lib/lumberjack/client.rb:42:in
write'", "/root/logstash-6.4.0/vendor/bundle/jruby/2.3.0/gems/logstash-output-lumberjack-3.1.7/lib/logstash/outputs/lumberjack.rb:65:in flush'", "/root/logstash-6.4.0/vendor/bundle/jruby/2.3.0/gems/stud-0.0.23/lib/stud/buffer.rb:219:in
block in buffer_flush'", "org/jruby/RubyHash.java:1343:in each'", "/root/logstash-6.4.0/vendor/bundle/jruby/2.3.0/gems/stud-0.0.23/lib/stud/buffer.rb:216:in
buffer_flush'", "/root/logstash-6.4.0/vendor/bundle/jruby/2.3.0/gems/stud-0.0.23/lib/stud/buffer.rb:159:in buffer_receive'", "/root/logstash-6.4.0/vendor/bundle/jruby/2.3.0/gems/logstash-output-lumberjack-3.1.7/lib/logstash/outputs/lumberjack.rb:52:in
block in register'", "/root/logstash-6.4.0/vendor/bundle/jruby/2.3.0/gems/logstash-codec-json-3.0.5/lib/logstash/codecs/json.rb:42:in encode'", "/root/logstash-6.4.0/vendor/bundle/jruby/2.3.0/gems/logstash-output-lumberjack-3.1.7/lib/logstash/outputs/lumberjack.rb:59:in
receive'", "/root/logstash-6.4.0/logstash-core/lib/logstash/outputs/base.rb:89:in block in multi_receive'", "org/jruby/RubyArray.java:1734:in
each'", "/root/logstash-6.4.0/logstash-core/lib/logstash/outputs/base.rb:89:in multi_receive'", "org/logstash/config/ir/compiler/OutputStrategyExt.java:114:in
multi_receive'", "org/logstash/config/ir/compiler/AbstractOutputDelegatorExt.java:97:in multi_receive'", "/root/logstash-6.4.0/logstash-core/lib/logstash/pipeline.rb:372:in
block in output_batch'", "org/jruby/RubyHash.java:1343:in each'", "/root/logstash-6.4.0/logstash-core/lib/logstash/pipeline.rb:371:in
output_batch'", "/root/logstash-6.4.0/logstash-core/lib/logstash/pipeline.rb:323:in worker_loop'", "/root/logstash-6.4.0/logstash-core/lib/logstash/pipeline.rb:285:in
block in start_workers'"]}
Any idea why this error happens? I am using logstah 6.3.2 in both server and client side.
and my yml file looks like...
##########################
#https://www.elastic.co/guide/en/logstash/current/ls-to-ls.html
input {
file {
path => "/home/abcdef/kibana_in/in.json"
start_position => "beginning"
sincedb_path => "/home/abcdef/sincedb_path.txt"
codec => "json"
}
}
filter {
split { }
}
output {
lumberjack {
codec => json
hosts => "abcd.abcd.com"
ssl_certificate => "/home/abcdef/lumberjack.cert"
port => 31333
}
file {
path => "/home/abcdef/file.out.txt"
}
}
#####################################
Please help !!!