当我./logstash -f test.conf时,它会显示错误

时间:2017-01-05 07:40:35

标签: elasticsearch logstash kibana elastic-stack logstash-configuration

  

[2017-01-05T15:18:50,554] [错误] [logstash.agent]管道   因错误导致中止{:exception =>#,
  :backtrace => [" file:/opt/elk/logstash-5.0.1/vendor/jruby/lib/jruby.jar!/jruby/java/core_ext/module.rb:45:在`const_missing&#中39;&#34 ;,
  " /opt/elk/logstash-5.0.1/vendor/bundle/jruby/1.9/gems/manticore-0.6.0-java/lib/manticore/client.rb:587:在   `ssl_socket_factory_from_options'&#34 ;,
  " /opt/elk/logstash-5.0.1/vendor/bundle/jruby/1.9/gems/manticore-0.6.0-java/lib/manticore/client.rb:394:在   `pool_builder'&#34 ;,
  " /opt/elk/logstash-5.0.1/vendor/bundle/jruby/1.9/gems/manticore-0.6.0-java/lib/manticore/client.rb:402:在   `池'&#34 ;,
  " /opt/elk/logstash-5.0.1/vendor/bundle/jruby/1.9/gems/manticore-0.6.0-java/lib/manticore/client.rb:208:在   `初始化'&#34 ;,
  " /opt/elk/logstash-5.0.1/vendor/bundle/jruby/1.9/gems/logstash-output-elasticsearch-5.2.1-java/lib/logstash/outputs/elasticsearch/http_client/manticore_adapter.rb :19:   `初始化'&#34 ;,
  " /opt/elk/logstash-5.0.1/vendor/bundle/jruby/1.9/gems/logstash-output-elasticsearch-5.2.1-java/lib/logstash/outputs/elasticsearch/http_client.rb:125 :在   `build_pool'&#34 ;,
  " /opt/elk/logstash-5.0.1/vendor/bundle/jruby/1.9/gems/logstash-output-elasticsearch-5.2.1-java/lib/logstash/outputs/elasticsearch/http_client.rb:20 :在   `初始化'&#34 ;,
  " /opt/elk/logstash-5.0.1/vendor/bundle/jruby/1.9/gems/logstash-output-elasticsearch-5.2.1-java/lib/logstash/outputs/elasticsearch/http_client_builder.rb:53 :在   `构建'&#34 ;,
  " /opt/elk/logstash-5.0.1/vendor/bundle/jruby/1.9/gems/logstash-output-elasticsearch-5.2.1-java/lib/logstash/outputs/elasticsearch.rb:188:在`build_client'&#34 ;,
  " /opt/elk/logstash-5.0.1/vendor/bundle/jruby/1.9/gems/logstash-output-elasticsearch-5.2.1-java/lib/logstash/outputs/elasticsearch/common.rb:13 :在   `寄存器'&#34 ;,
  " /opt/elk/logstash-5.0.1/logstash-core/lib/logstash/output_delegator_strategies/shared.rb:8:在   `寄存器'&#34 ;,
  " /opt/elk/logstash-5.0.1/logstash-core/lib/logstash/output_delegator.rb:37:在   `寄存器'&#34 ;,
  " /opt/elk/logstash-5.0.1/logstash-core/lib/logstash/pipeline.rb:196:在   `start_workers'&#34 ;,
  " org / jruby / RubyArray.java:1613:在`each'",
  " /opt/elk/logstash-5.0.1/logstash-core/lib/logstash/pipeline.rb:196:在   `start_workers'&#34 ;,
  " /opt/elk/logstash-5.0.1/logstash-core/lib/logstash/pipeline.rb:153:在   `运行'&#34 ;,
  " /opt/elk/logstash-5.0.1/logstash-core/lib/logstash/agent.rb:250:在   `start_pipeline'"]}

1 个答案:

答案 0 :(得分:0)

尝试通过export CLASSPATH=""清空CLASSPATH,然后运行logstash命令,因为我认为它在应用程序中有预定义路径,它正在尝试设置该路径,如果该路径已经存在则会产生冲突。