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

时间:2021-02-18 21:28:45

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。