Error:
c: \ Program Files \ Logstash \ bin> logstash.bat -e 'input {stdin {}} output {stdout {}}' An unexpected error occurred! : Error => bad URI (is not URI?): File: // c: / Program Files / Logstash / confi g / log4j2.properties,: backtrace => [ "C: / Program Files / Logstash / vendor / jruby / lib / ruby / 1.9 / uri / common. rb: 176: in split '", "C: / Program Files / Logstash / vendor / jruby / lib / ruby / 1.9 / uri / common.rb: 210: in parse ' "," C: / Program Files / Logstash / vendor / jruby / lib / ruby / 1.9 / uri / common.rb: 747: in parse'", "C: / Program Files / Logstash / vendor / jruby / lib / ruby / 1.9 / uri / common.rb: 994: inURI '", "c: / Program Files / Logstash / log stash-core / lib / logstash / logging / logger.rb: 76: in initialize '", "org / jruby / ext / thread / Mutex.java: 149: insynchronize '", "c: / Program Files / Logstash / logstash-core / lib / logstash / logging / logger.rb: 74: inin itialize ' "," c: / Program Files / Logstash / logstash-core / lib / logstash / runner.rb: 193: inexecute'", "c: / P rogram Files / Logstash / vendor / bundle / jruby / 1.9 / gems / clamp-0.6.5 / lib / clamp / command.rb: 67: in run '", "c : / Program Files / Logstash / logstash-core / lib / logstash / runner.rb: 178: inrun '", "c: / Program Files / Logst ash / vendor / bundle / jruby / 1.9 / gems / clamp-0.6.5 / lib / clamp / command.rb: 132: in run '", "c: \ Program Files \ \ Logstash \ lib \ bootstrap \ environment.rb: 71: in(root) '"]
The error that you are getting is because you are running logstash in Program Files and logstash doesn't work with the space in the folder name.
You should copy the logstash folder to another location that doesn't contain a space and run it from there.