行动是治愈恐惧的良药,而犹豫、拖延将不断滋养恐惧。

logstash6.2.4 ruby插件 require 'time'后 空指针

Logstash | 作者 zhulun | 发布于2019年04月23日 | 阅读数:2168


1.png


2.png


3.png

在虚拟机上没有出现异常,但是放在阿里云服务器上出现了这种情况,求解
已邀请:

zhulun

赞同来自:

[2019-04-23T16:16:50,266][ERROR][logstash.filters.ruby    ] Could not process event: 
 {
 :script_path=>"/opt/logstash-6.2.4/config/pinguan_event_prd.rb", 
 
 :class=>"Java::JavaLang::NullPointerException", 
 
 :backtrace=>[
 "org.jruby.RubyString.getStringForPattern(RubyString.java:3741)", 
 
 "org.jruby.RubyString.asRegexpArg(RubyString.java:2405)", 
 
 "org.jruby.RubyString.subBangNoIter(RubyString.java:2445)", 
 
 "org.jruby.RubyString.sub_bang(RubyString.java:2398)", 
 
 "org.jruby.RubyString$INVOKER$i$sub_bang.call(RubyString$INVOKER$i$sub_bang.gen)", 
 
 "org.jruby.internal.runtime.methods.JavaMethod$JavaMethodOneOrTwoBlock.call(JavaMethod.java:606)", 
 
 "org.jruby.ir.targets.InvokeSite.invoke(InvokeSite.java:145)", 
 
 "uri_3a_classloader_3a_.META_minus_INF.jruby_dot_home.lib.ruby.stdlib.date.format.RUBY$method$_parse_day$0(uri:classloader:/META-INF/jruby.home/lib/ruby/stdlib/date/format.rb:476)", 
 "org.jruby.internal.runtime.methods.CompiledIRMethod.call(CompiledIRMethod.java:116)", 
 
 "org.jruby.internal.runtime.methods.MixedModeIRMethod.call(MixedModeIRMethod.java:198)", 
 
 "org.jruby.internal.runtime.methods.DynamicMethod.call(DynamicMethod.java:208)", 
 
 "org.jruby.runtime.callsite.CachingCallSite.call(CachingCallSite.java:193)", 
 
 "org.jruby.ir.interpreter.InterpreterEngine.processCall(InterpreterEngine.java:323)", 
 
 "org.jruby.ir.interpreter.StartupInterpreterEngine.interpret(StartupInterpreterEngine.java:73)", 
 
 "org.jruby.ir.interpreter.InterpreterEngine.interpret(InterpreterEngine.java:89)", 
 
 "org.jruby.internal.runtime.methods.MixedModeIRMethod.INTERPRET_METHOD(MixedModeIRMethod.java:214)", 
 
 "org.jruby.internal.runtime.methods.MixedModeIRMethod.call(MixedModeIRMethod.java:200)", 
 
 "org.jruby.internal.runtime.methods.DynamicMethod.call(DynamicMethod.java:208)", 
 
 "org.jruby.runtime.callsite.CachingCallSite.call(CachingCallSite.java:193)", 
  
 "org.jruby.ir.interpreter.InterpreterEngine.processCall(InterpreterEngine.java:323)", 
 
 "org.jruby.ir.interpreter.StartupInterpreterEngine.interpret(StartupInterpreterEngine.java:73)", 
 
 "org.jruby.ir.interpreter.InterpreterEngine.interpret(InterpreterEngine.java:83)", 
 "org.jruby.internal.runtime.methods.MixedModeIRMethod.INTERPRET_METHOD(MixedModeIRMethod.java:179)", 
 "org.jruby.internal.runtime.methods.MixedModeIRMethod.call(MixedModeIRMethod.java:165)", 
 "org.jruby.internal.runtime.methods.DynamicMethod.call(DynamicMethod.java:200)", 
 "org.jruby.runtime.callsite.CachingCallSite.call(CachingCallSite.java:161)", 
 "org.jruby.ir.interpreter.InterpreterEngine.processCall(InterpreterEngine.java:314)", 
 "org.jruby.ir.interpreter.StartupInterpreterEngine.interpret(StartupInterpreterEngine.java:73)", 
 "org.jruby.ir.interpreter.InterpreterEngine.interpret(InterpreterEngine.java:83)", 
 "org.jruby.internal.runtime.methods.MixedModeIRMethod.INTERPRET_METHOD(MixedModeIRMethod.java:179)", 
 "org.jruby.internal.runtime.methods.MixedModeIRMethod.call(MixedModeIRMethod.java:165)", 
 "org.jruby.internal.runtime.methods.DynamicMethod.call(DynamicMethod.java:200)", 
 "opt.logstash_minus_6_dot_2_dot_4.vendor.bundle.jruby.$2_dot_3_dot_0.gems.logstash_minus_filter_minus_ruby_minus_3_dot_1_dot_4.lib.logstash.filters.ruby.script.context.RUBY$method$execute_filter$0(/opt/logstash-6.2.4/vendor/bundle/jruby/2.3.0/gems/logstash-filter-ruby-3.1.4/lib/logstash/filters/ruby/script/context.rb:55)", 
 "opt.logstash_minus_6_dot_2_dot_4.vendor.bundle.jruby.$2_dot_3_dot_0.gems.logstash_minus_filter_minus_ruby_minus_3_dot_1_dot_4.lib.logstash.filters.ruby.script.context.RUBY$method$execute_filter$0$__VARARGS__(/opt/logstash-6.2.4/vendor/bundle/jruby/2.3.0/gems/logstash-filter-ruby-3.1.4/lib/logstash/filters/ruby/script/context.rb)", 
 "org.jruby.internal.runtime.methods.CompiledIRMethod.call(CompiledIRMethod.java:77)", 
 "org.jruby.internal.runtime.methods.MixedModeIRMethod.call(MixedModeIRMethod.java:93)", 
 "org.jruby.ir.targets.InvokeSite.invoke(InvokeSite.java:145)", 
 "opt.logstash_minus_6_dot_2_dot_4.vendor.bundle.jruby.$2_dot_3_dot_0.gems.logstash_minus_filter_minus_ruby_minus_3_dot_1_dot_4.lib.logstash.filters.ruby.script.RUBY$method$execute$0(/opt/logstash-6.2.4/vendor/bundle/jruby/2.3.0/gems/logstash-filter-ruby-3.1.4/lib/logstash/filters/ruby/script.rb:30)", 
 "org.jruby.internal.runtime.methods.CompiledIRMethod.call(CompiledIRMethod.java:103)", 
 "org.jruby.internal.runtime.methods.MixedModeIRMethod.call(MixedModeIRMethod.java:163)", 
 "org.jruby.internal.runtime.methods.DynamicMethod.call(DynamicMethod.java:200)", 
 "org.jruby.runtime.callsite.CachingCallSite.cacheAndCall(CachingCallSite.java:338)", 
 "org.jruby.runtime.callsite.CachingCallSite.call(CachingCallSite.java:163)", 
 "org.jruby.ir.interpreter.InterpreterEngine.processCall(InterpreterEngine.java:314)", 
 "org.jruby.ir.interpreter.StartupInterpreterEngine.interpret(StartupInterpreterEngine.java:73)", 
 "org.jruby.ir.interpreter.InterpreterEngine.interpret(InterpreterEngine.java:83)", 
 "org.jruby.internal.runtime.methods.MixedModeIRMethod.INTERPRET_METHOD(MixedModeIRMethod.java:179)", 
 "org.jruby.internal.runtime.methods.MixedModeIRMethod.call(MixedModeIRMethod.java:165)", 
 "org.jruby.runtime.callsite.CachingCallSite.callBlock(CachingCallSite.java:171)", 
 "org.jruby.runtime.callsite.CachingCallSite.call(CachingCallSite.java:177)", 
 "org.jruby.ir.interpreter.InterpreterEngine.processCall(InterpreterEngine.java:332)", 
 "org.jruby.ir.interpreter.StartupInterpreterEngine.interpret(StartupInterpreterEngine.java:73)", 
 "org.jruby.ir.interpreter.InterpreterEngine.interpret(InterpreterEngine.java:83)", 
 "org.jruby.internal.runtime.methods.MixedModeIRMethod.INTERPRET_METHOD(MixedModeIRMethod.java:179)", 
 "org.jruby.internal.runtime.methods.MixedModeIRMethod.call(MixedModeIRMethod.java:165)", 
 "opt.logstash_minus_6_dot_2_dot_4.logstash_minus_core.lib.logstash.filters.base.RUBY$method$do_filter$0(/opt/logstash-6.2.4/logstash-core/lib/logstash/filters/base.rb:145)", 
 "opt.logstash_minus_6_dot_2_dot_4.logstash_minus_core.lib.logstash.filters.base.RUBY$method$do_filter$0$__VARARGS__(/opt/logstash-6.2.4/logstash-core/lib/logstash/filters/base.rb)", 
 "org.jruby.internal.runtime.methods.CompiledIRMethod.call(CompiledIRMethod.java:77)", 
 "org.jruby.internal.runtime.methods.MixedModeIRMethod.call(MixedModeIRMethod.java:93)", 
 "org.jruby.ir.targets.InvokeSite.invoke(InvokeSite.java:145)", 
 "opt.logstash_minus_6_dot_2_dot_4.logstash_minus_core.lib.logstash.filters.base.RUBY$block$multi_filter$1(/opt/logstash-6.2.4/logstash-core/lib/logstash/filters/base.rb:164)", 
 "org.jruby.runtime.CompiledIRBlockBody.yieldDirect(CompiledIRBlockBody.java:156)", 
 "org.jruby.runtime.BlockBody.yield(BlockBody.java:114)", 
 "org.jruby.runtime.Block.yield(Block.java:165)", 
 "org.jruby.RubyArray.each(RubyArray.java:1734)", 
 "org.jruby.RubyArray$INVOKER$i$0$0$each.call(RubyArray$INVOKER$i$0$0$each.gen)", 
 "org.jruby.internal.runtime.methods.JavaMethod$JavaMethodZeroBlock.call(JavaMethod.java:498)", 
 "org.jruby.ir.targets.InvokeSite.invoke(InvokeSite.java:145)", 
 "opt.logstash_minus_6_dot_2_dot_4.logstash_minus_core.lib.logstash.filters.base.RUBY$method$multi_filter$0(/opt/logstash-6.2.4/logstash-core/lib/logstash/filters/base.rb:161)", 
 "org.jruby.internal.runtime.methods.CompiledIRMethod.call(CompiledIRMethod.java:103)", 
 "org.jruby.internal.runtime.methods.MixedModeIRMethod.call(MixedModeIRMethod.java:163)", 
 "org.jruby.internal.runtime.methods.DynamicMethod.call(DynamicMethod.java:200)", 
 "org.jruby.runtime.callsite.CachingCallSite.cacheAndCall(CachingCallSite.java:338)", 
 "org.jruby.runtime.callsite.CachingCallSite.call(CachingCallSite.java:163)", 
 "org.jruby.ir.interpreter.InterpreterEngine.processCall(InterpreterEngine.java:314)", 
 "org.jruby.ir.interpreter.StartupInterpreterEngine.interpret(StartupInterpreterEngine.java:73)", 
 "org.jruby.ir.interpreter.InterpreterEngine.interpret(InterpreterEngine.java:83)", 
 "org.jruby.internal.runtime.methods.MixedModeIRMethod.INTERPRET_METHOD(MixedModeIRMethod.java:179)", 
 "org.jruby.internal.runtime.methods.MixedModeIRMethod.call(MixedModeIRMethod.java:165)", 
 "org.jruby.internal.runtime.methods.DynamicMethod.call(DynamicMethod.java:200)", 
 "org.jruby.runtime.callsite.CachingCallSite.call(CachingCallSite.java:161)", 
 "org.jruby.ir.interpreter.InterpreterEngine.processCall(InterpreterEngine.java:314)", 
 "org.jruby.ir.interpreter.StartupInterpreterEngine.interpret(StartupInterpreterEngine.java:73)", 
 "org.jruby.ir.interpreter.Interpreter.INTERPRET_BLOCK(Interpreter.java:132)", 
 "org.jruby.runtime.MixedModeIRBlockBody.commonYieldPath(MixedModeIRBlockBody.java:148)", 
 "org.jruby.runtime.IRBlockBody.call(IRBlockBody.java:73)", 
 "org.jruby.runtime.Block.call(Block.java:124)", 
 "org.jruby.RubyProc.call(RubyProc.java:289)", 
 "org.jruby.internal.runtime.methods.ProcMethod.call(ProcMethod.java:63)", 
 "org.jruby.internal.runtime.methods.DynamicMethod.call(DynamicMethod.java:204)", 
 "org.jruby.internal.runtime.methods.DynamicMethod.call(DynamicMethod.java:200)", 
 "org.jruby.runtime.callsite.CachingCallSite.call(CachingCallSite.java:161)", 
 "org.jruby.ir.interpreter.InterpreterEngine.processCall(InterpreterEngine.java:314)", 
 "org.jruby.ir.interpreter.StartupInterpreterEngine.interpret(StartupInterpreterEngine.java:73)", 
 "org.jruby.ir.interpreter.InterpreterEngine.interpret(InterpreterEngine.java:83)", 
 "org.jruby.internal.runtime.methods.MixedModeIRMethod.INTERPRET_METHOD(MixedModeIRMethod.java:179)", 
 "org.jruby.internal.runtime.methods.MixedModeIRMethod.call(MixedModeIRMethod.java:165)", 
 "org.jruby.internal.runtime.methods.DynamicMethod.call(DynamicMethod.java:200)", 
 "opt.logstash_minus_6_dot_2_dot_4.logstash_minus_core.lib.logstash.pipeline.RUBY$method$worker_loop$0(/opt/logstash-6.2.4/logstash-core/lib/logstash/pipeline.rb:424)", 
 "org.jruby.internal.runtime.methods.CompiledIRMethod.call(CompiledIRMethod.java:116)", 
 "org.jruby.internal.runtime.methods.MixedModeIRMethod.call(MixedModeIRMethod.java:198)", 
 "org.jruby.internal.runtime.methods.DynamicMethod.call(DynamicMethod.java:208)", 
 "opt.logstash_minus_6_dot_2_dot_4.logstash_minus_core.lib.logstash.pipeline.RUBY$block$start_workers$2(/opt/logstash-6.2.4/logstash-core/lib/logstash/pipeline.rb:386)", 
 "org.jruby.runtime.CompiledIRBlockBody.callDirect(CompiledIRBlockBody.java:145)", 
 "org.jruby.runtime.IRBlockBody.call(IRBlockBody.java:71)", 
 "org.jruby.runtime.Block.call(Block.java:124)", 
 "org.jruby.RubyProc.call(RubyProc.java:289)", 
 "org.jruby.RubyProc.call(RubyProc.java:246)", 
 "org.jruby.internal.runtime.RubyRunnable.run(RubyRunnable.java:104)", 
 "java.lang.Thread.run(Thread.java:748)"]}
[2019-04-23T16:16:50,264][ERROR][logstash.filters.ruby    ] Could not process event:  {:script_path=>"/opt/logstash-6.2.4/config/pinguan_event_prd.rb", 
 :class=>"Java::JavaLang::NullPointerException", 
 :backtrace=>["org.jruby.RubyString.getStringForPattern(RubyString.java:3741)", 
 "org.jruby.RubyString.asRegexpArg(RubyString.java:2405)", 
 "org.jruby.RubyString.subBangNoIter(RubyString.java:2445)", 
 "org.jruby.RubyString.sub_bang(RubyString.java:2398)", 
 "org.jruby.RubyString$INVOKER$i$sub_bang.call(RubyString$INVOKER$i$sub_bang.gen)", 
 "org.jruby.internal.runtime.methods.JavaMethod$JavaMethodOneOrTwoBlock.call(JavaMethod.java:606)", 
 "org.jruby.ir.targets.InvokeSite.invoke(InvokeSite.java:145)", 
 "uri_3a_classloader_3a_.META_minus_INF.jruby_dot_home.lib.ruby.stdlib.date.format.RUBY$method$_parse_day$0(uri:classloader:/META-INF/jruby.home/lib/ruby/stdlib/date/format.rb:476)", 
 "uri_3a_classloader_3a_.META_minus_INF.jruby_dot_home.lib.ruby.stdlib.date.format.RUBY$method$_parse_day$0$__VARARGS__(uri:classloader:/META-INF/jruby.home/lib/ruby/stdlib/date/format.rb)", 
 "org.jruby.internal.runtime.methods.CompiledIRMethod.call(CompiledIRMethod.java:77)", 
 "org.jruby.internal.runtime.methods.MixedModeIRMethod.call(MixedModeIRMethod.java:93)", 
 "org.jruby.ir.targets.InvokeSite.invoke(InvokeSite.java:145)", 
 "uri_3a_classloader_3a_.META_minus_INF.jruby_dot_home.lib.ruby.stdlib.date.format.RUBY$method$_parse$0(uri:classloader:/META-INF/jruby.home/lib/ruby/stdlib/date/format.rb:847)", 
 "org.jruby.internal.runtime.methods.CompiledIRMethod.call(CompiledIRMethod.java:77)", 
 "org.jruby.internal.runtime.methods.CompiledIRMethod.call(CompiledIRMethod.java:113)", 
 "org.jruby.internal.runtime.methods.MixedModeIRMethod.call(MixedModeIRMethod.java:198)", 
 "org.jruby.internal.runtime.methods.DynamicMethod.call(DynamicMethod.java:208)", 
 "org.jruby.runtime.callsite.CachingCallSite.cacheAndCall(CachingCallSite.java:358)", 
 "org.jruby.runtime.callsite.CachingCallSite.call(CachingCallSite.java:195)", 
 "org.jruby.ir.interpreter.InterpreterEngine.processCall(InterpreterEngine.java:323)", 
 "org.jruby.ir.interpreter.StartupInterpreterEngine.interpret(StartupInterpreterEngine.java:73)", 
 "org.jruby.ir.interpreter.InterpreterEngine.interpret(InterpreterEngine.java:83)", 
 "org.jruby.internal.runtime.methods.MixedModeIRMethod.INTERPRET_METHOD(MixedModeIRMethod.java:179)", 
 "org.jruby.internal.runtime.methods.MixedModeIRMethod.call(MixedModeIRMethod.java:165)", 
 "org.jruby.internal.runtime.methods.DynamicMethod.call(DynamicMethod.java:200)", 
 "org.jruby.runtime.callsite.CachingCallSite.call(CachingCallSite.java:161)", 
 "org.jruby.ir.interpreter.InterpreterEngine.processCall(InterpreterEngine.java:314)", 
 "org.jruby.ir.interpreter.StartupInterpreterEngine.interpret(StartupInterpreterEngine.java:73)", 
 "org.jruby.internal.runtime.methods.MixedModeIRMethod.INTERPRET_METHOD(MixedModeIRMethod.java:109)", 
 "org.jruby.internal.runtime.methods.MixedModeIRMethod.call(MixedModeIRMethod.java:95)", 
 "org.jruby.ir.targets.InvokeSite.invoke(InvokeSite.java:145)", 
 "opt.logstash_minus_6_dot_2_dot_4.vendor.bundle.jruby.$2_dot_3_dot_0.gems.logstash_minus_filter_minus_ruby_minus_3_dot_1_dot_4.lib.logstash.filters.ruby.script.context.RUBY$method$execute_filter$0(/opt/logstash-6.2.4/vendor/bundle/jruby/2.3.0/gems/logstash-filter-ruby-3.1.4/lib/logstash/filters/ruby/script/context.rb:55)", 
 "org.jruby.internal.runtime.methods.CompiledIRMethod.call(CompiledIRMethod.java:103)", 
 "org.jruby.internal.runtime.methods.MixedModeIRMethod.call(MixedModeIRMethod.java:163)", 
 "org.jruby.internal.runtime.methods.DynamicMethod.call(DynamicMethod.java:200)", 
 "org.jruby.runtime.callsite.CachingCallSite.cacheAndCall(CachingCallSite.java:338)", 
 "org.jruby.runtime.callsite.CachingCallSite.call(CachingCallSite.java:163)", 
 "org.jruby.ir.interpreter.InterpreterEngine.processCall(InterpreterEngine.java:314)", 
 "org.jruby.ir.interpreter.StartupInterpreterEngine.interpret(StartupInterpreterEngine.java:73)", 
 "org.jruby.ir.interpreter.InterpreterEngine.interpret(InterpreterEngine.java:83)", 
 "org.jruby.internal.runtime.methods.MixedModeIRMethod.INTERPRET_METHOD(MixedModeIRMethod.java:179)", 
 "org.jruby.internal.runtime.methods.MixedModeIRMethod.call(MixedModeIRMethod.java:165)", 
 "org.jruby.internal.runtime.methods.DynamicMethod.call(DynamicMethod.java:200)", 
 "org.jruby.runtime.callsite.CachingCallSite.call(CachingCallSite.java:161)", 
 "org.jruby.ir.interpreter.InterpreterEngine.processCall(InterpreterEngine.java:314)", 
 "org.jruby.ir.interpreter.StartupInterpreterEngine.interpret(StartupInterpreterEngine.java:73)", 
 "org.jruby.ir.interpreter.InterpreterEngine.interpret(InterpreterEngine.java:83)", 
 "org.jruby.internal.runtime.methods.MixedModeIRMethod.INTERPRET_METHOD(MixedModeIRMethod.java:179)", 
 "org.jruby.internal.runtime.methods.MixedModeIRMethod.call(MixedModeIRMethod.java:165)", 
 "org.jruby.runtime.callsite.CachingCallSite.callBlock(CachingCallSite.java:171)", 
 "org.jruby.runtime.callsite.CachingCallSite.call(CachingCallSite.java:177)", 
 "org.jruby.ir.interpreter.InterpreterEngine.processCall(InterpreterEngine.java:332)", 
 "org.jruby.ir.interpreter.StartupInterpreterEngine.interpret(StartupInterpreterEngine.java:73)", 
 "org.jruby.ir.interpreter.InterpreterEngine.interpret(InterpreterEngine.java:83)", 
 "org.jruby.internal.runtime.methods.MixedModeIRMethod.INTERPRET_METHOD(MixedModeIRMethod.java:179)", 
 "org.jruby.internal.runtime.methods.MixedModeIRMethod.call(MixedModeIRMethod.java:165)", 
 "opt.logstash_minus_6_dot_2_dot_4.logstash_minus_core.lib.logstash.filters.base.RUBY$method$do_filter$0(/opt/logstash-6.2.4/logstash-core/lib/logstash/filters/base.rb:145)", 
 "opt.logstash_minus_6_dot_2_dot_4.logstash_minus_core.lib.logstash.filters.base.RUBY$block$multi_filter$1(/opt/logstash-6.2.4/logstash-core/lib/logstash/filters/base.rb:164)", 
 "org.jruby.runtime.CompiledIRBlockBody.yieldDirect(CompiledIRBlockBody.java:156)", 
 "org.jruby.runtime.BlockBody.yield(BlockBody.java:114)", 
 "org.jruby.runtime.Block.yield(Block.java:165)", 
 "org.jruby.RubyArray.each(RubyArray.java:1734)", 
 "opt.logstash_minus_6_dot_2_dot_4.logstash_minus_core.lib.logstash.filters.base.RUBY$method$multi_filter$0(/opt/logstash-6.2.4/logstash-core/lib/logstash/filters/base.rb:161)", 
 "opt.logstash_minus_6_dot_2_dot_4.logstash_minus_core.lib.logstash.filters.base.RUBY$method$multi_filter$0$__VARARGS__(/opt/logstash-6.2.4/logstash-core/lib/logstash/filters/base.rb)", 
 "org.jruby.internal.runtime.methods.CompiledIRMethod.call(CompiledIRMethod.java:77)", 
 "org.jruby.internal.runtime.methods.MixedModeIRMethod.call(MixedModeIRMethod.java:93)", 
 "org.jruby.ir.targets.InvokeSite.invoke(InvokeSite.java:145)", 
 "opt.logstash_minus_6_dot_2_dot_4.logstash_minus_core.lib.logstash.filter_delegator.RUBY$method$multi_filter$0(/opt/logstash-6.2.4/logstash-core/lib/logstash/filter_delegator.rb:47)", 
 "org.jruby.internal.runtime.methods.CompiledIRMethod.call(CompiledIRMethod.java:103)", 
 "org.jruby.internal.runtime.methods.MixedModeIRMethod.call(MixedModeIRMethod.java:163)", 
 "org.jruby.internal.runtime.methods.DynamicMethod.call(DynamicMethod.java:200)", 
 "org.jruby.runtime.callsite.CachingCallSite.cacheAndCall(CachingCallSite.java:338)", 
 "org.jruby.runtime.callsite.CachingCallSite.call(CachingCallSite.java:163)", 
 "org.jruby.ir.interpreter.InterpreterEngine.processCall(InterpreterEngine.java:314)", 
 "org.jruby.ir.interpreter.StartupInterpreterEngine.interpret(StartupInterpreterEngine.java:73)", 
 "org.jruby.ir.interpreter.Interpreter.INTERPRET_BLOCK(Interpreter.java:132)", 
 "org.jruby.runtime.MixedModeIRBlockBody.commonYieldPath(MixedModeIRBlockBody.java:148)", 
 "org.jruby.runtime.IRBlockBody.call(IRBlockBody.java:73)", 
 "org.jruby.runtime.Block.call(Block.java:124)", 
 "org.jruby.RubyProc.call(RubyProc.java:289)", 
 "org.jruby.internal.runtime.methods.ProcMethod.call(ProcMethod.java:63)", 
 "org.jruby.internal.runtime.methods.DynamicMethod.call(DynamicMethod.java:204)", 
 "org.jruby.internal.runtime.methods.DynamicMethod.call(DynamicMethod.java:200)", 
 "org.jruby.runtime.callsite.CachingCallSite.cacheAndCall(CachingCallSite.java:338)", 
 "org.jruby.runtime.callsite.CachingCallSite.call(CachingCallSite.java:163)", 
 "org.jruby.ir.interpreter.InterpreterEngine.processCall(InterpreterEngine.java:314)", 
 "org.jruby.ir.interpreter.StartupInterpreterEngine.interpret(StartupInterpreterEngine.java:73)", 
 "org.jruby.ir.interpreter.InterpreterEngine.interpret(InterpreterEngine.java:83)", 
 "org.jruby.internal.runtime.methods.MixedModeIRMethod.INTERPRET_METHOD(MixedModeIRMethod.java:179)", 
 "org.jruby.internal.runtime.methods.MixedModeIRMethod.call(MixedModeIRMethod.java:165)", 
 "org.jruby.internal.runtime.methods.DynamicMethod.call(DynamicMethod.java:200)", 
 "opt.logstash_minus_6_dot_2_dot_4.logstash_minus_core.lib.logstash.pipeline.RUBY$method$worker_loop$0(/opt/logstash-6.2.4/logstash-core/lib/logstash/pipeline.rb:424)", 
 "opt.logstash_minus_6_dot_2_dot_4.logstash_minus_core.lib.logstash.pipeline.RUBY$method$worker_loop$0$__VARARGS__(/opt/logstash-6.2.4/logstash-core/lib/logstash/pipeline.rb)", 
 "org.jruby.internal.runtime.methods.CompiledIRMethod.call(CompiledIRMethod.java:77)", 
 "org.jruby.internal.runtime.methods.MixedModeIRMethod.call(MixedModeIRMethod.java:93)", 
 "org.jruby.ir.targets.InvokeSite.invoke(InvokeSite.java:145)", 
 "opt.logstash_minus_6_dot_2_dot_4.logstash_minus_core.lib.logstash.pipeline.RUBY$block$start_workers$2(/opt/logstash-6.2.4/logstash-core/lib/logstash/pipeline.rb:386)", 
 "org.jruby.runtime.CompiledIRBlockBody.callDirect(CompiledIRBlockBody.java:145)", 
 "org.jruby.runtime.IRBlockBody.call(IRBlockBody.java:71)", 
 "org.jruby.runtime.Block.call(Block.java:124)", 
 "org.jruby.RubyProc.call(RubyProc.java:289)", 
 "org.jruby.RubyProc.call(RubyProc.java:246)", 
 "org.jruby.internal.runtime.RubyRunnable.run(RubyRunnable.java:104)", 
 "java.lang.Thread.run(Thread.java:748)"]}
[2019-04-23T16:16:50,287][ERROR][logstash.filters.ruby    ] Could not process event:  {:script_path=>"/opt/logstash-6.2.4/config/pinguan_event_prd.rb", 
 :class=>"Java::JavaLang::NullPointerException", 
 :backtrace=>["org.jruby.RubyString.getStringForPattern(RubyString.java:3741)", 
 "org.jruby.RubyString.asRegexpArg(RubyString.java:2405)", 
 "org.jruby.RubyString.subBangNoIter(RubyString.java:2445)", 
 "org.jruby.RubyString.sub_bang(RubyString.java:2398)", 
 "org.jruby.RubyString$INVOKER$i$sub_bang.call(RubyString$INVOKER$i$sub_bang.gen)", 
 "org.jruby.internal.runtime.methods.JavaMethod$JavaMethodOneOrTwoOrNBlock.call(JavaMethod.java:402)", 
 "uri_3a_classloader_3a_.META_minus_INF.jruby_dot_home.lib.ruby.stdlib.date.format.RUBY$method$_parse_day$0(uri:classloader:/META-INF/jruby.home/lib/ruby/stdlib/date/format.rb:476)", 
 "uri_3a_classloader_3a_.META_minus_INF.jruby_dot_home.lib.ruby.stdlib.date.format.RUBY$method$_parse_day$0$__VARARGS__(uri:classloader:/META-INF/jruby.home/lib/ruby/stdlib/date/format.rb)", 
 "org.jruby.internal.runtime.methods.CompiledIRMethod.call(CompiledIRMethod.java:77)", 
 "org.jruby.internal.runtime.methods.MixedModeIRMethod.call(MixedModeIRMethod.java:93)", 
 "org.jruby.ir.targets.InvokeSite.invoke(InvokeSite.java:145)", 
 "uri_3a_classloader_3a_.META_minus_INF.jruby_dot_home.lib.ruby.stdlib.date.format.RUBY$method$_parse$0(uri:classloader:/META-INF/jruby.home/lib/ruby/stdlib/date/format.rb:847)", 
 "org.jruby.internal.runtime.methods.CompiledIRMethod.call(CompiledIRMethod.java:77)", 
 "org.jruby.internal.runtime.methods.MixedModeIRMethod.call(MixedModeIRMethod.java:93)", 
 "org.jruby.ir.targets.InvokeSite.invoke(InvokeSite.java:145)", 
 "uri_3a_classloader_3a_.META_minus_INF.jruby_dot_home.lib.ruby.stdlib.time.RUBY$method$parse$0(uri:classloader:/META-INF/jruby.home/lib/ruby/stdlib/time.rb:363)", 
 "opt.logstash_minus_6_dot_2_dot_4.config.pinguan_event_prd.RUBY$method$filter$0(/opt/logstash-6.2.4/config/pinguan_event_prd.rb:12)", 
 "opt.logstash_minus_6_dot_2_dot_4.config.pinguan_event_prd.RUBY$method$filter$0$__VARARGS__(/opt/logstash-6.2.4/config/pinguan_event_prd.rb)", 
 "org.jruby.internal.runtime.methods.CompiledIRMethod.call(CompiledIRMethod.java:77)", 
 "org.jruby.internal.runtime.methods.MixedModeIRMethod.call(MixedModeIRMethod.java:93)", 
 "org.jruby.ir.targets.InvokeSite.invoke(InvokeSite.java:145)", 
 "opt.logstash_minus_6_dot_2_dot_4.vendor.bundle.jruby.$2_dot_3_dot_0.gems.logstash_minus_filter_minus_ruby_minus_3_dot_1_dot_4.lib.logstash.filters.ruby.script.context.RUBY$method$execute_filter$0(/opt/logstash-6.2.4/vendor/bundle/jruby/2.3.0/gems/logstash-filter-ruby-3.1.4/lib/logstash/filters/ruby/script/context.rb:55)", 
 "opt.logstash_minus_6_dot_2_dot_4.vendor.bundle.jruby.$2_dot_3_dot_0.gems.logstash_minus_filter_minus_ruby_minus_3_dot_1_dot_4.lib.logstash.filters.ruby.script.context.RUBY$method$execute_filter$0$__VARARGS__(/opt/logstash-6.2.4/vendor/bundle/jruby/2.3.0/gems/logstash-filter-ruby-3.1.4/lib/logstash/filters/ruby/script/context.rb)", 
 "org.jruby.internal.runtime.methods.CompiledIRMethod.call(CompiledIRMethod.java:77)", 
 "org.jruby.internal.runtime.methods.MixedModeIRMethod.call(MixedModeIRMethod.java:93)", 
 "org.jruby.ir.targets.InvokeSite.invoke(InvokeSite.java:145)", 
 "opt.logstash_minus_6_dot_2_dot_4.vendor.bundle.jruby.$2_dot_3_dot_0.gems.logstash_minus_filter_minus_ruby_minus_3_dot_1_dot_4.lib.logstash.filters.ruby.script.RUBY$method$execute$0(/opt/logstash-6.2.4/vendor/bundle/jruby/2.3.0/gems/logstash-filter-ruby-3.1.4/lib/logstash/filters/ruby/script.rb:30)", 
 "opt.logstash_minus_6_dot_2_dot_4.vendor.bundle.jruby.$2_dot_3_dot_0.gems.logstash_minus_filter_minus_ruby_minus_3_dot_1_dot_4.lib.logstash.filters.ruby.script.RUBY$method$execute$0$__VARARGS__(/opt/logstash-6.2.4/vendor/bundle/jruby/2.3.0/gems/logstash-filter-ruby-3.1.4/lib/logstash/filters/ruby/script.rb)", 
 "org.jruby.internal.runtime.methods.CompiledIRMethod.call(CompiledIRMethod.java:77)", 
 "org.jruby.internal.runtime.methods.MixedModeIRMethod.call(MixedModeIRMethod.java:93)", 
 "org.jruby.ir.targets.InvokeSite.invoke(InvokeSite.java:145)", 
 "opt.logstash_minus_6_dot_2_dot_4.vendor.bundle.jruby.$2_dot_3_dot_0.gems.logstash_minus_filter_minus_ruby_minus_3_dot_1_dot_4.lib.logstash.filters.ruby.RUBY$method$file_script$0(/opt/logstash-6.2.4/vendor/bundle/jruby/2.3.0/gems/logstash-filter-ruby-3.1.4/lib/logstash/filters/ruby.rb:98)", 
 "opt.logstash_minus_6_dot_2_dot_4.vendor.bundle.jruby.$2_dot_3_dot_0.gems.logstash_minus_filter_minus_ruby_minus_3_dot_1_dot_4.lib.logstash.filters.ruby.RUBY$method$file_script$0$__VARARGS__(/opt/logstash-6.2.4/vendor/bundle/jruby/2.3.0/gems/logstash-filter-ruby-3.1.4/lib/logstash/filters/ruby.rb)", 
 "org.jruby.internal.runtime.methods.CompiledIRMethod.call(CompiledIRMethod.java:77)", 
 "org.jruby.internal.runtime.methods.MixedModeIRMethod.call(MixedModeIRMethod.java:93)", 
 "org.jruby.ir.targets.InvokeSite.invoke(InvokeSite.java:145)", 
 "opt.logstash_minus_6_dot_2_dot_4.vendor.bundle.jruby.$2_dot_3_dot_0.gems.logstash_minus_filter_minus_ruby_minus_3_dot_1_dot_4.lib.logstash.filters.ruby.RUBY$method$filter$0(/opt/logstash-6.2.4/vendor/bundle/jruby/2.3.0/gems/logstash-filter-ruby-3.1.4/lib/logstash/filters/ruby.rb:84)", 
 "opt.logstash_minus_6_dot_2_dot_4.vendor.bundle.jruby.$2_dot_3_dot_0.gems.logstash_minus_filter_minus_ruby_minus_3_dot_1_dot_4.lib.logstash.filters.ruby.RUBY$method$filter$0$__VARARGS__(/opt/logstash-6.2.4/vendor/bundle/jruby/2.3.0/gems/logstash-filter-ruby-3.1.4/lib/logstash/filters/ruby.rb)", 
 "org.jruby.internal.runtime.methods.CompiledIRMethod.call(CompiledIRMethod.java:77)", 
 "org.jruby.internal.runtime.methods.MixedModeIRMethod.call(MixedModeIRMethod.java:93)", 
 "org.jruby.ir.targets.InvokeSite.invoke(InvokeSite.java:145)", 
 "opt.logstash_minus_6_dot_2_dot_4.logstash_minus_core.lib.logstash.filters.base.RUBY$method$do_filter$0(/opt/logstash-6.2.4/logstash-core/lib/logstash/filters/base.rb:145)", 
 "opt.logstash_minus_6_dot_2_dot_4.logstash_minus_core.lib.logstash.filters.base.RUBY$method$do_filter$0$__VARARGS__(/opt/logstash-6.2.4/logstash-core/lib/logstash/filters/base.rb)", 
 "org.jruby.internal.runtime.methods.CompiledIRMethod.call(CompiledIRMethod.java:77)", 
 "org.jruby.internal.runtime.methods.MixedModeIRMethod.call(MixedModeIRMethod.java:93)", 
 "org.jruby.ir.targets.InvokeSite.invoke(InvokeSite.java:145)", 
 "opt.logstash_minus_6_dot_2_dot_4.logstash_minus_core.lib.logstash.filters.base.RUBY$block$multi_filter$1(/opt/logstash-6.2.4/logstash-core/lib/logstash/filters/base.rb:164)", 
 "org.jruby.runtime.CompiledIRBlockBody.yieldDirect(CompiledIRBlockBody.java:156)", 
 "org.jruby.runtime.BlockBody.yield(BlockBody.java:114)", 
 "org.jruby.runtime.Block.yield(Block.java:165)", 
 "org.jruby.RubyArray.each(RubyArray.java:1734)", 
 "opt.logstash_minus_6_dot_2_dot_4.logstash_minus_core.lib.logstash.filters.base.RUBY$method$multi_filter$0(/opt/logstash-6.2.4/logstash-core/lib/logstash/filters/base.rb:161)", 
 "opt.logstash_minus_6_dot_2_dot_4.logstash_minus_core.lib.logstash.filters.base.RUBY$method$multi_filter$0$__VARARGS__(/opt/logstash-6.2.4/logstash-core/lib/logstash/filters/base.rb)", 
 "org.jruby.internal.runtime.methods.CompiledIRMethod.call(CompiledIRMethod.java:77)", 
 "org.jruby.internal.runtime.methods.MixedModeIRMethod.call(MixedModeIRMethod.java:93)", 
 "org.jruby.ir.targets.InvokeSite.invoke(InvokeSite.java:145)", 
 "opt.logstash_minus_6_dot_2_dot_4.logstash_minus_core.lib.logstash.filter_delegator.RUBY$method$multi_filter$0(/opt/logstash-6.2.4/logstash-core/lib/logstash/filter_delegator.rb:47)", 
 "org.jruby.internal.runtime.methods.CompiledIRMethod.call(CompiledIRMethod.java:103)", 
 "org.jruby.internal.runtime.methods.MixedModeIRMethod.call(MixedModeIRMethod.java:163)", 
 "org.jruby.internal.runtime.methods.DynamicMethod.call(DynamicMethod.java:200)", 
 "org.jruby.runtime.callsite.CachingCallSite.cacheAndCall(CachingCallSite.java:338)", 
 "org.jruby.runtime.callsite.CachingCallSite.call(CachingCallSite.java:163)", 
 "org.jruby.ir.interpreter.InterpreterEngine.processCall(InterpreterEngine.java:314)", 
 "org.jruby.ir.interpreter.StartupInterpreterEngine.interpret(StartupInterpreterEngine.java:73)", 
 "org.jruby.ir.interpreter.Interpreter.INTERPRET_BLOCK(Interpreter.java:132)", 
 "org.jruby.runtime.MixedModeIRBlockBody.commonYieldPath(MixedModeIRBlockBody.java:148)", 
 "org.jruby.runtime.IRBlockBody.call(IRBlockBody.java:73)", 
 "org.jruby.runtime.Block.call(Block.java:124)", 
 "org.jruby.RubyProc.call(RubyProc.java:289)", 
 "org.jruby.internal.runtime.methods.ProcMethod.call(ProcMethod.java:63)", 
 "org.jruby.internal.runtime.methods.DynamicMethod.call(DynamicMethod.java:204)", 
 "org.jruby.internal.runtime.methods.DynamicMethod.call(DynamicMethod.java:200)", 
 "org.jruby.runtime.callsite.CachingCallSite.cacheAndCall(CachingCallSite.java:338)", 
 "org.jruby.runtime.callsite.CachingCallSite.call(CachingCallSite.java:163)", 
 "org.jruby.ir.interpreter.InterpreterEngine.processCall(InterpreterEngine.java:314)", 
 "org.jruby.ir.interpreter.StartupInterpreterEngine.interpret(StartupInterpreterEngine.java:73)", 
 "org.jruby.ir.interpreter.InterpreterEngine.interpret(InterpreterEngine.java:83)", 
 "org.jruby.internal.runtime.methods.MixedModeIRMethod.INTERPRET_METHOD(MixedModeIRMethod.java:179)", 
 "org.jruby.internal.runtime.methods.MixedModeIRMethod.call(MixedModeIRMethod.java:165)", 
 "org.jruby.internal.runtime.methods.DynamicMethod.call(DynamicMethod.java:200)", 
 "opt.logstash_minus_6_dot_2_dot_4.logstash_minus_core.lib.logstash.pipeline.RUBY$method$worker_loop$0(/opt/logstash-6.2.4/logstash-core/lib/logstash/pipeline.rb:424)", 
 "opt.logstash_minus_6_dot_2_dot_4.logstash_minus_core.lib.logstash.pipeline.RUBY$method$worker_loop$0$__VARARGS__(/opt/logstash-6.2.4/logstash-core/lib/logstash/pipeline.rb)", 
 "org.jruby.internal.runtime.methods.CompiledIRMethod.call(CompiledIRMethod.java:77)", 
 "org.jruby.internal.runtime.methods.MixedModeIRMethod.call(MixedModeIRMethod.java:93)", 
 "org.jruby.ir.targets.InvokeSite.invoke(InvokeSite.java:145)", 
 "opt.logstash_minus_6_dot_2_dot_4.logstash_minus_core.lib.logstash.pipeline.RUBY$block$start_workers$2(/opt/logstash-6.2.4/logstash-core/lib/logstash/pipeline.rb:386)", 
 "org.jruby.runtime.CompiledIRBlockBody.callDirect(CompiledIRBlockBody.java:145)", 
 "org.jruby.runtime.IRBlockBody.call(IRBlockBody.java:71)", 
 "org.jruby.runtime.Block.call(Block.java:124)", 
 "org.jruby.RubyProc.call(RubyProc.java:289)", 
 "org.jruby.RubyProc.call(RubyProc.java:246)", 
 "org.jruby.internal.runtime.RubyRunnable.run(RubyRunnable.java:104)", 
 "java.lang.Thread.run(Thread.java:748)"]}

要回复问题请先登录注册