我们正在使用的环境:Ubuntu 14.x
[ERROR] 2018-01-25 06:05:03.376 [[main] -pipeline-manager] elasticsearch - 无法安装模板。 {:message =>"模板文件''无法找到!",:class =>" ArgumentError",:backtrace => [" /usr/share/logstash/vendor/bundle/jruby/2.3.0 /gems/logstash-output-elasticsearch-9.0.2-java/lib/logstash/outputs/elasticsearch/template_manager.rb:31:in read_template_file'", "/usr/share/logstash/vendor/bundle/jruby/2.3.0/gems/logstash-output-elasticsearch-9.0.2-java/lib/logstash/outputs/elasticsearch/template_manager.rb:17:in
get_template'"," / usr /share/logstash/vendor/bundle/jruby/2.3.0/gems/logstash-output-elasticsearch-9.0.2-java/lib/logstash/outputs/elasticsearch/template_manager.rb:7:in install_template'", "/usr/share/logstash/vendor/bundle/jruby/2.3.0/gems/logstash-output-elasticsearch-9.0.2-java/lib/logstash/outputs/elasticsearch/common.rb:57:in
install_template& #39;"," /usr/share/logstash/vendor/bundle/jruby/2.3.0/gems/logstash-output-elasticsearch-9.0.2-java/lib/logstash/outputs/elasticsearch /common.rb:26:in register'", "/usr/share/logstash/logstash-core/lib/logstash/output_delegator_strategies/shared.rb:9:in
注册'"," /usr/share/logstash/logstash-core/lib/logstash/output_delegator.rb:43:in {{ 1}} register_plugin'"," /usr/share/logstash/logstash-core/lib/logstash/pipeline.rb:354:register'", "/usr/share/logstash/logstash-core/lib/logstash/pipeline.rb:343:in
每个'&#34 ;," /usr/share/logstash/logstash-core/lib/logstash/pipeline.rb:354:在block in register_plugins'", "org/jruby/RubyArray.java:1734:in
maybe_setup_out_plugins'"," / usr / share / logstash / logstash核/ LIB / logstash / pipelin e.rb:364:在register_plugins'", "/usr/share/logstash/logstash-core/lib/logstash/pipeline.rb:743:in
运行'"," /usr/share/logstash/logstash-core/lib/logstash/pipeline.rb:248:在`block in开始'"]}
答案 0 :(得分:0)
我为这个问题写了elasticsearch-loader elasticsearch-loader支持csv文件,开箱即用,API非常简单 用法示例:
elasticsearch-loader --index blockchain --type bitcoin csv /usr/share/logstash/MTGOXUSD.csv