Logstash 报错 An unexpected error occurred! :error => bad URI(is not URI?,是因为路径c:program fileslogstashlogstash.bat 中有空格

I am trying to run logstash under c:program files
but I get an error 
An unexpected error occurred! :error => bad URI(is not URI?): file://C:/Program Files/Infra/Data/Shipper/logstash5/config/log4j2.properties, :backtrace => ["C:/Program Files/Infra/Data/Shipper/logstash5/vendor/jruby/lib/ruby/1.9/uri/common.rb:176:in `split'"

If I install it in a folder without space in the path then it would work fine。

原文地址:https://www.cnblogs.com/haoliansheng/p/6513082.html