绊脚石乃是进身之阶。

logstash 运行一段时间后,自动停掉,但进程还在,不在读取数据发送给es

Logstash | 作者 sunbiqiang | 发布于2019年12月12日 | 阅读数:2262

运行一段时间后,就会自动停止了,但进程还在。只有重启后才会读取数据,请问这是什么原因?以下是logstash 日志

[2019-12-12T18:06:33,850][ERROR][logstash.pipeline ] byHash$13.visit(RubyHash.java:1355)",
"org.jruby.RubyHash.visitLimited(RubyHash.java:648)",
"org.jruby.RubyHash.visitAll(RubyHash.java:634)",
"org.jruby.RubyHash.iteratorVisitAll(RubyHash.java:1306)",
"org.jruby.RubyHash.each_pairCommon(RubyHash.java:1351)",
"org.jruby.RubyHash.each19(RubyHash.java:1342)",
"org.jruby.RubyHash$INVOKER$i$0$0$each19.call(RubyHash$INVOKER$i$0$0$each19.gen)",
"org.jruby.runtime.callsite.CachingCallSite.callBlock(CachingCallSite.java:143)",
"org.jruby.runtime.callsite.CachingCallSite.callIter(CachingCallSite.java:154)",
"rubyjit.LogStash::Filters::Json$$filter_40ff8d4c1569dcd49c050f4a5093a76d6c4d61381442407170.__file__(/mnt/elk/logstash-5.4.3/vendor/bundle/jruby/1.9/gems/logstash-filter-json-3.0.2/lib/logstash/filters/json.rb:106)",
"rubyjit.LogStash::Filters::Json$$filter_40ff8d4c1569dcd49c050f4a5093a76d6c4d61381442407170.__file__(/mnt/elk/logstash-5.4.3/vendor/bundle/jruby/1.9/gems/logstash-filter-json-3.0.2/lib/logstash/filters/json.rb)",
"org.jruby.internal.runtime.methods.JittedMethod.call(JittedMethod.java:201)",
"org.jruby.runtime.callsite.CachingCallSite.cacheAndCall(CachingCallSite.java:336)",
"org.jruby.runtime.callsite.CachingCallSite.callBlock(CachingCallSite.java:179)",
"org.jruby.runtime.callsite.CachingCallSite.call(CachingCallSite.java:183)",
"rubyjit.LogStash::Filters::Base$$do_filter_8e8403dcfdf01a35ffca12ed35ec4e79455489071442407170.__file__(/mnt/elk/logstash-5.4.3/logstash-core/lib/logstash/filters/base.rb:145)",
"rubyjit.LogStash::Filters::Base$$do_filter_8e8403dcfdf01a35ffca12ed35ec4e79455489071442407170.__file__(/mnt/elk/logstash-5.4.3/logstash-core/lib/logstash/filters/base.rb)",
"org.jruby.internal.runtime.methods.JittedMethod.call(JittedMethod.java:201)",
"org.jruby.runtime.callsite.CachingCallSite.cacheAndCall(CachingCallSite.java:336)",
"org.jruby.runtime.callsite.CachingCallSite.callBlock(CachingCallSite.java:179)",
"org.jruby.runtime.callsite.CachingCallSite.callIter(CachingCallSite.java:188)",
"rubyjit.LogStash::Filters::Base$$multi_filter_6c0dea8219a042f89f5a5b41e60697f8088a7c451442407170.block_0$RUBY$__file__(/mnt/elk/logstash-5.4.3/logstash-core/lib/logstash/filters/base.rb:164)",
"rubyjit$LogStash::Filters::Base$$multi_filter_6c0dea8219a042f89f5a5b41e60697f8088a7c451442407170$block_0$RUBY$__file__.call(rubyjit$LogStash::Filters::Base$$multi_filter_6c0dea8219a042f89f5a5b41e60697f8088a7c451442407170$block_0$RUBY$__file__)",
"org.jruby.runtime.CompiledBlock19.yield(CompiledBlock19.java:135)",
"org.jruby.runtime.Block.yield(Block.java:142)",
"org.jruby.RubyArray.eachCommon(RubyArray.java:1606)",
"org.jruby.RubyArray.each(RubyArray.java:1613)",
"org.jruby.RubyArray$INVOKER$i$0$0$each.call(RubyArray$INVOKER$i$0$0$each.gen)",
"org.jruby.runtime.callsite.CachingCallSite.callBlock(CachingCallSite.java:143)",
"org.jruby.runtime.callsite.CachingCallSite.callIter(CachingCallSite.java:154)",
"rubyjit.LogStash::Filters::Base$$multi_filter_6c0dea8219a042f89f5a5b41e60697f8088a7c451442407170.__file__(/mnt/elk/logstash-5.4.3/logstash-core/lib/logstash/filters/base.rb:161)",
"rubyjit.LogStash::Filters::Base$$multi_filter_6c0dea8219a042f89f5a5b41e60697f8088a7c451442407170.__file__(/mnt/elk/logstash-5.4.3/logstash-core/lib/logstash/filters/base.rb)",
"org.jruby.internal.runtime.methods.JittedMethod.call(JittedMethod.java:181)",
"org.jruby.runtime.callsite.CachingCallSite.cacheAndCall(CachingCallSite.java:326)",
"org.jruby.runtime.callsite.CachingCallSite.call(CachingCallSite.java:170)",
"rubyjit.LogStash::FilterDelegator$$multi_filter_43640ebf68de601b56cb618392ab9de0b4f8c58a1442407170.__file__(/mnt/elk/logstash-5.4.3/logstash-core/lib/logstash/filter_delegator.rb:43)",
"rubyjit.LogStash::FilterDelegator$$multi_filter_43640ebf68de601b56cb618392ab9de0b4f8c58a1442407170.__file__(/mnt/elk/logstash-5.4.3/logstash-core/lib/logstash/filter_delegator.rb)",
"org.jruby.internal.runtime.methods.JittedMethod.call(JittedMethod.java:181)",
"org.jruby.runtime.callsite.CachingCallSite.call(CachingCallSite.java:168)",
"org.jruby.ast.CallOneArgNode.interpret(CallOneArgNode.java:57)",
"org.jruby.ast.DAsgnNode.interpret(DAsgnNode.java:110)",
"org.jruby.ast.NewlineNode.interpret(NewlineNode.java:105)",
"org.jruby.ast.BlockNode.interpret(BlockNode.java:71)",
"org.jruby.evaluator.ASTInterpreter.INTERPRET_BLOCK(ASTInterpreter.java:112)",
"org.jruby.runtime.Interpreted19Block.evalBlockBody(Interpreted19Block.java:206)",
"org.jruby.runtime.Interpreted19Block.yield(Interpreted19Block.java:194)",
"org.jruby.runtime.Interpreted19Block.call(Interpreted19Block.java:125)",
"org.jruby.runtime.Block.call(Block.java:101)",
"org.jruby.RubyProc.call(RubyProc.java:300)",
"org.jruby.internal.runtime.methods.ProcMethod.call(ProcMethod.java:64)",
"org.jruby.internal.runtime.methods.DynamicMethod.call(DynamicMethod.java:210)",
"org.jruby.internal.runtime.methods.DynamicMethod.call(DynamicMethod.java:206)",
"org.jruby.runtime.callsite.CachingCallSite.call(CachingCallSite.java:168)",
"rubyjit.LogStash::Pipeline$$filter_batch_2b9b0fb1ba7f58d36d479ab8384717f4c3fd58e51442407170.block_0$RUBY$__file__(/mnt/elk/logstash-5.4.3/logstash-core/lib/logstash/pipeline.rb:370)",
"rubyjit$LogStash::Pipeline$$filter_batch_2b9b0fb1ba7f58d36d479ab8384717f4c3fd58e51442407170$block_0$RUBY$__file__.call(rubyjit$LogStash::Pipeline$$filter_batch_2b9b0fb1ba7f58d36d479ab8384717f4c3fd58e51442407170$block_0$RUBY$__file__)",
"org.jruby.runtime.CompiledBlock19.yield(CompiledBlock19.java:159)",
"org.jruby.runtime.CompiledBlock19.call(CompiledBlock19.java:87)",
"org.jruby.runtime.Block.call(Block.java:101)",
"org.jruby.RubyProc.call(RubyProc.java:300)",
"org.jruby.RubyProc.call19(RubyProc.java:281)",
"org.jruby.RubyProc$INVOKER$i$0$0$call19.call(RubyProc$INVOKER$i$0$0$call19.gen)",
"org.jruby.internal.runtime.methods.DynamicMethod.call(DynamicMethod.java:210)",
"org.jruby.internal.runtime.methods.DynamicMethod.call(DynamicMethod.java:206)",
"org.jruby.runtime.callsite.CachingCallSite.call(CachingCallSite.java:168)",
"rubyjit.LogStash::Util::WrappedSynchronousQueue::ReadBatch$$each_39448e3b53418e12c6a9b40cc27889a1b2905b7d1442407170.block_0$RUBY$__file__(/mnt/elk/logstash-5.4.3/logstash-core/lib/logstash/util/wrapped_synchronous_queue.rb:224)",
"rubyjit$LogStash::Util::WrappedSynchronousQueue::ReadBatch$$each_39448e3b53418e12c6a9b40cc27889a1b2905b7d1442407170$block_0$RUBY$__file__.call(rubyjit$LogStash::Util::WrappedSynchronousQueue::ReadBatch$$each_39448e3b53418e12c6a9b40cc27889a1b2905b7d1442407170$block_0$RUBY$__file__)",
"org.jruby.runtime.CompiledBlock19.yield(CompiledBlock19.java:135)",
"org.jruby.runtime.Block.yield(Block.java:142)",
"org.jruby.RubyHash$13.visit(RubyHash.java:1355)",
"org.jruby.RubyHash.visitLimited(RubyHash.java:648)",
"org.jruby.RubyHash.visitAll(RubyHash.java:634)",
"org.jruby.RubyHash.iteratorVisitAll(RubyHash.java:1306)",
"org.jruby.RubyHash.each_pairCommon(RubyHash.java:1351)",
"org.jruby.RubyHash.each19(RubyHash.java:1342)",
"org.jruby.RubyHash$INVOKER$i$0$0$each19.call(RubyHash$INVOKER$i$0$0$each19.gen)",
"org.jruby.runtime.callsite.CachingCallSite.callBlock(CachingCallSite.java:143)",
"org.jruby.runtime.callsite.CachingCallSite.callIter(CachingCallSite.java:154)",
"rubyjit.LogStash::Util::WrappedSynchronousQueue::ReadBatch$$each_39448e3b53418e12c6a9b40cc27889a1b2905b7d1442407170.__file__(/mnt/elk/logstash-5.4.3/logstash-core/lib/logstash/util/wrapped_synchronous_queue.rb:223)",
"rubyjit.LogStash::Util::WrappedSynchronousQueue::ReadBatch$$each_39448e3b53418e12c6a9b40cc27889a1b2905b7d1442407170.__file__(/mnt/elk/logstash-5.4.3/logstash-core/lib/logstash/util/wrapped_synchronous_queue.rb)",
"org.jruby.internal.runtime.methods.JittedMethod.call(JittedMethod.java:161)",
"org.jruby.runtime.callsite.CachingCallSite.callBlock(CachingCallSite.java:143)",
"org.jruby.runtime.callsite.CachingCallSite.callIter(CachingCallSite.java:154)",
"rubyjit.LogStash::Pipeline$$filter_batch_2b9b0fb1ba7f58d36d479ab8384717f4c3fd58e51442407170.chained_0_rescue_1$RUBY$SYNTHETIC__file__(/mnt/elk/logstash-5.4.3/logstash-core/lib/logstash/pipeline.rb:369)",
"rubyjit.LogStash::Pipeline$$filter_batch_2b9b0fb1ba7f58d36d479ab8384717f4c3fd58e51442407170.__file__(/mnt/elk/logstash-5.4.3/logstash-core/lib/logstash/pipeline.rb)",
"rubyjit.LogStash::Pipeline$$filter_batch_2b9b0fb1ba7f58d36d479ab8384717f4c3fd58e51442407170.__file__(/mnt/elk/logstash-5.4.3/logstash-core/lib/logstash/pipeline.rb)",
"org.jruby.internal.runtime.methods.JittedMethod.call(JittedMethod.java:181)",
"org.jruby.runtime.callsite.CachingCallSite.call(CachingCallSite.java:168)",
"org.jruby.ast.FCallOneArgNode.interpret(FCallOneArgNode.java:36)",
"org.jruby.ast.NewlineNode.interpret(NewlineNode.java:105)",
"org.jruby.ast.BlockNode.interpret(BlockNode.java:71)",
"org.jruby.ast.WhileNode.interpret(WhileNode.java:131)",
"org.jruby.ast.NewlineNode.interpret(NewlineNode.java:105)",
"org.jruby.ast.BlockNode.interpret(BlockNode.java:71)",
"org.jruby.evaluator.ASTInterpreter.INTERPRET_METHOD(ASTInterpreter.java:74)",
"org.jruby.internal.runtime.methods.InterpretedMethod.call(InterpretedMethod.java:225)",
"org.jruby.internal.runtime.methods.DefaultMethod.call(DefaultMethod.java:219)",
"org.jruby.runtime.callsite.CachingCallSite.call(CachingCallSite.java:202)",
"org.jruby.ast.FCallTwoArgNode.interpret(FCallTwoArgNode.java:38)",
"org.jruby.ast.NewlineNode.interpret(NewlineNode.java:105)",
"org.jruby.ast.BlockNode.interpret(BlockNode.java:71)",
"org.jruby.evaluator.ASTInterpreter.INTERPRET_BLOCK(ASTInterpreter.java:112)",
"org.jruby.runtime.Interpreted19Block.evalBlockBody(Interpreted19Block.java:206)",
"org.jruby.runtime.Interpreted19Block.yield(Interpreted19Block.java:194)",
"org.jruby.runtime.Interpreted19Block.call(Interpreted19Block.java:125)",
"org.jruby.runtime.Block.call(Block.java:101)",
"org.jruby.RubyProc.call(RubyProc.java:300)",
"org.jruby.RubyProc.call(RubyProc.java:230)",
"org.jruby.internal.runtime.RubyRunnable.run(RubyRunnable.java:99)",
"java.lang.Thread.run(Thread.java:748)"]}
已邀请:

要回复问题请先登录注册