如果路径中有空格,则Windows上的Logstash 5.4。*不起作用

时间:2017-06-05 04:28:55

标签: logstash logstash-configuration

我在Windows上使用最新版本的Logstash(即5.4.1)。如果路径中有空格,则Logstash无法启动。我使用的命令如下:

logstash -f "/C:/Users/folder1/logstash.conf" --path.logs "C:/Users/folder1/logs" --path.settings "/<logstash dir path with spaces>/config"

生成以下错误:

An unexpected error occurred! :error => bad URI(is not URI?): file:////<path with space>/config/log4j2.properties, :backtrace => ["<path with space>/vendor/jruby/lib/ruby/1.9/uri/common.rb:176:in `split'", "<path with space>/vendor/jruby/lib/ruby/1.9/uri/common.rb:210:in `parse'", "<path with space>/vendor/jruby/lib/ruby/1.9/uri/common.rb:747:in `parse'", "<path with space>/vendor/jruby/lib/ruby/1.9/uri/common.rb:994:in `URI'", "<path with space>/logstash-core/lib/logstash/logging/logger.rb:76:in `initialize'", "org/jruby/ext/thread/Mutex.java:149:in `synchronize'", "<path with space>/logstash-core/lib/logstash/logging/logger.rb:74:in `initialize'", "<path with space>/logstash-core/lib/logstash/runner.rb:205:in `execute'", "<path with space>/vendor/bundle/jruby/1.9/gems/clamp-0.6.5/lib/clamp/command.rb:67:in `run'", "<path with space>/logstash-core/lib/logstash/runner.rb:185:in `run'", "<path with space>/vendor/bundle/jruby/1.9/gems/clamp-0.6.5/lib/clamp/command.rb:132:in `run'", "<path with space>\\lib\\bootstrap\\environment.rb:71:in `(root)'"]

任何想法,如何处理这个?

0 个答案:

没有答案