使用 shuf 来打乱一个文件中的行或是选择文件中一个随机的行。

logstash 启动异常。报错的是jruby相关内容

Logstash | 作者 linuxea | 发布于2018年02月23日 | 阅读数:10682

[2018-02-23T05:19:53,528][FATAL][logstash.runner ] An unexpected error occurred! {:error=>#<NoMethodError: undefined method `<' for nil:NilClass>, :backtrace=>["/home/env/logstash-6.2.1/vendor/bundle/jruby/2.3.0/gems/logstash-output-elasticsearch-9.0.2-java/lib/logstash/outputs/elasticsearch/common.rb:213:in `get_event_type'", "/home/env/logstash-6.2.1/vendor/bundle/jruby/2.3.0/gems/logstash-output-elasticsearch-9.0.2-java/lib/logstash/outputs/elasticsearch/common.rb:165:in `event_action_params'", "/home/env/logstash-6.2.1/vendor/bundle/jruby/2.3.0/gems/logstash-output-elasticsearch-9.0.2-java/lib/logstash/outputs/elasticsearch/common.rb:39:in `event_action_tuple'", "/home/env/logstash-6.2.1/vendor/bundle/jruby/2.3.0/gems/logstash-output-elasticsearch-9.0.2-java/lib/logstash/outputs/elasticsearch/common.rb:34:in `block in multi_receive'", "org/jruby/RubyArray.java:2486:in `map'", "/home/env/logstash-6.2.1/vendor/bundle/jruby/2.3.0/gems/logstash-output-elasticsearch-9.0.2-java/lib/logstash/outputs/elasticsearch/common.rb:34:in `multi_receive'", "/home/env/logstash-6.2.1/logstash-core/lib/logstash/output_delegator_strategies/shared.rb:13:in `multi_receive'", "/home/env/logstash-6.2.1/logstash-core/lib/logstash/output_delegator.rb:49:in `multi_receive'", "/home/env/logstash-6.2.1/logstash-core/lib/logstash/pipeline.rb:479:in `block in output_batch'", "org/jruby/RubyHash.java:1343:in `each'", "/home/env/logstash-6.2.1/logstash-core/lib/logstash/pipeline.rb:478:in `output_batch'", "/home/env/logstash-6.2.1/logstash-core/lib/logstash/pipeline.rb:430:in `worker_loop'", "/home/env/logstash-6.2.1/logstash-core/lib/logstash/pipeline.rb:385:in `block in start_workers'"]}
[2018-02-23T05:19:53,843][ERROR][org.logstash.Logstash ] java.lang.IllegalStateException: org.jruby.exceptions.RaiseException: (SystemExit) exit
[root@localhost bin]#
已邀请:

laoyang360 - 《一本书讲透Elasticsearch》作者,Elastic认证工程师 [死磕Elasitcsearch]知识星球地址:http://t.cn/RmwM3N9;微信公众号:铭毅天下; 博客:https://elastic.blog.csdn.net

赞同来自:

感觉像是缺少jar包导致的,从这个角度排查下。

bo

赞同来自:

查到原因了吗?

要回复问题请先登录注册