首页 > 编程语言 > 详细

logstash报错 :backtrace=>["org/jruby/RubyIO.java:1457:in `write'", "org/jruby/RubyIO.java:1428:in `write'"

时间:2019-04-16 16:28:11      阅读:1684      评论:0      收藏:0      [点我收藏+]

报错:

 

[2019-04-16T15:54:07,827][FATAL][logstash.runner ] An unexpected error occurred! {:error=>#<SystemCallError: Unknown error (SystemCallError) - <STDOUT>>, :backtrace=>["org/jruby/RubyIO.java:1457:in `write‘", "org/jruby/RubyIO.java:1428:in `write‘", "/home/dgd/bin/logstash/vendor/bundle/jruby/2.3.0/gems/logstash-output-stdout-3.1.4/lib/logstash/outputs/stdout.rb:43:in `block in multi_receive_encoded‘", "org/jruby/RubyArray.java:1734:in `each‘", "/home/dgd/bin/logstash/vendor/bundle/jruby/2.3.0/gems/logstash-output-stdout-3.1.4/lib/logstash/outputs/stdout.rb:42:in `multi_receive_encoded‘", "/home/dgd/bin/logstash/logstash-core/lib/logstash/outputs/base.rb:87: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‘", "/home/dgd/bin/logstash/logstash-core/lib/logstash/pipeline.rb:373:in `block in output_batch‘", "org/jruby/RubyHash.java:1343:in `each‘", "/home/dgd/bin/logstash/logstash-core/lib/logstash/pipeline.rb:372:in `output_batch‘", "/home/dgd/bin/logstash/logstash-core/lib/logstash/pipeline.rb:324:in `worker_loop‘", "/home/dgd/bin/logstash/logstash-core/lib/logstash/pipeline.rb:286:in `block in start_workers‘"]}
[2019-04-16T15:54:07,893][ERROR][org.logstash.Logstash ] java.lang.IllegalStateException: Logstash stopped processing because of an error: (SystemExit) exit

 

 

解决方法:

vim pipeline-config/xxx.config

....

output {
   # stdout { codec => rubydebug }   //将这行备注掉

....

logstash报错 :backtrace=>["org/jruby/RubyIO.java:1457:in `write'", "org/jruby/RubyIO.java:1428:in `write'"

原文:https://www.cnblogs.com/zhuoyanXiaNa/p/10717880.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!