为什么这个Logstash JMS插件给出“初始化错误”?

fnvucqvd  于 2023-05-27  发布在  Logstash
关注(0)|答案(1)|浏览(180)

我已经下载并安装了JMS插件,但无法使用logstash运行它。我收到这个错误消息:

[2023-05-23T14:00:56,868][ERROR][logstash.javapipeline    ][main] Pipeline error {:pipeline_id=>"main", :exception=>#<NoMethodError: undefined method `each_with_object' for nil:NilClass>, :backtrace=>["/usr/share/logstash/vendor/bundle/jruby/2.6.0/gems/logstash-input-jms-3.2.2-java/lib/logstash/inputs/jms.rb:183:in `obfuscate_jms_config'",
"/usr/share/logstash/vendor/bundle/jruby/2.6.0/gems/logstash-input-jms-3.2.2-java/lib/logstash/inputs/jms.rb:179:in `register'", "/usr/share/logstash/logstash-core/lib/logstash/java_pipeline.rb:237:in `block in register_plugins'",
"org/jruby/RubyArray.java:1865:in `each'",
"/usr/share/logstash/logstash-core/lib/logstash/java_pipeline.rb:236:in `register_plugins'", "/usr/share/logstash/logstash-core/lib/logstash/java_pipeline.rb:395:in `start_inputs'", "/usr/share/logstash/logstash-core/lib/logstash/java_pipeline.rb:320:in `start_workers'", "/usr/share/logstash/logstash-core/lib/logstash/java_pipeline.rb:194:in `run'", "/usr/share/logstash/logstash-core/lib/logstash/java_pipeline.rb:146:in `block in start'"], "pipeline.sources"=>["/usr/share/logstash/config/jms.conf"], :thread=>"#<Thread:0x70132530@/usr/share/logstash/logstash-core/lib/logstash/java_pipeline.rb:134 run>"}

知道丢了什么吗我不知道这里发生了什么所以我很感激任何帮助。先谢谢你了!
尝试在安装后初始化插件,而不是启动它停止与异常消息。

kiz8lqtg

kiz8lqtg1#

jms插件从yaml、jndi或插件选项中加载jms_config。从JNDI或选项加载的函数总是返回一个散列,因此您必须从logstash无法读取的YAML文件加载。

相关问题