EOFError: End of file reached

Hi,
I am routing logstash logs to another logstash using TCP, there is no connection issue between them and I am able to telnet. but while sending the logs getting below error. Is that a bug ?

[2019-10-22T14:50:48,395][WARN ][logstash.outputs.tcp     ] tcp output exception {:host=>"xxx.xx.xx.xx", :port=>xxxx, :exception=>#<EOFError: End of file reached>, :backtrace=>["org/jruby/RubyIO.java:3021:in `sysread'", "/usr/share/logstash/vendor/bundle/jruby/2.5.0/gems/logstash-output-tcp-6.0.0/lib/logstash/outputs/tcp.rb:158: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:in `encode'", "/usr/share/logstash/logstash-core/lib/logstash/codecs/delegator.rb:31:in `block in encode'", "org/logstash/instrument/metrics/AbstractSimpleMetricExt.java:45:in `time'", "org/logstash/instrument/metrics/AbstractNamespacedMetricExt.java:44:in `time'", "/usr/share/logstash/logstash-core/lib/logstash/codecs/delegator.rb:30:in `encode'", "/usr/share/logstash/vendor/bundle/jruby/2.5.0/gems/logstash-output-tcp-6.0.0/lib/logstash/outputs/tcp.rb:203:in `receive'", "/usr/share/logstash/logstash-core/lib/logstash/outputs/base.rb:89:in `block in multi_receive'", "org/jruby/RubyArray.java:1792:in `each'", "/usr/share/logstash/logstash-core/lib/logstash/outputs/base.rb:89:in `multi_receive'", "org/logstash/config/ir/compiler/OutputStrategyExt.java:118:in `multi_receive'", "org/logstash/config/ir/compiler/AbstractOutputDelegatorExt.java:101:in `multi_receive'", "/usr/share/logstash/logstash-core/lib/logstash/java_pipeline.rb:239:in `block in start_workers'"]}

EOFError for a tcp output typically indicates that the remove server closed the connection. What gets logged over there?

Ok i will go to Network team again for the trace and check.
Nothing .... there is not logs on the other logstash.

Its resolved, TCP never worked we switched it to UDP.

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