Run logstash on windows ->> errors

Hi I need to check the performance one of my logstash conf. Therefore I've decided to install logstash on windows the new one instance as standalone. After that I've set the variable env.

At least I got the error. BTW. this pipeline(config) works on logstash docker.

Using JAVA_HOME defined java: C:\Program Files\Java\jdk-16.0.2
WARNING, using JAVA_HOME while Logstash distribution comes with a bundled JDK
2021-11-23T21:26:14.317+01:00 [main] WARN FilenoUtil : Native subprocess control requires open access to the JDK IO subsystem
Pass '--add-opens java.base/ --add-opens java.base/' to enable.
Sending Logstash logs to C:/logstash-7.15.2/logs which is now configured via
[2021-11-23T21:26:28,958][INFO ][logstash.runner          ] Log4j configuration path used is: C:\logstash-7.15.2\config\
[2021-11-23T21:26:28,958][INFO ][logstash.runner          ] Starting Logstash {"logstash.version"=>"7.15.2", "jruby.version"=>"jruby (2.5.8) 2021-06-15 55810c552b Java HotSpot(TM) 64-Bit Server VM 16.0.2+7-67 on 16.0.2+7-67 +indy +jit [mswin32-x86_64]"}
[2021-11-23T21:26:29,058][WARN ][logstash.config.source.multilocal] Ignoring the 'pipelines.yml' file because modules or command line options are specified
[2021-11-23T21:26:31,347][INFO ][logstash.agent           ] Successfully started Logstash API endpoint {:port=>9600}
[2021-11-23T21:26:31,827][ERROR][logstash.agent           ] Failed to execute action {:action=>LogStash::PipelineAction::Create/pipeline_id:main, :exception=>"LogStash::ConfigurationError", :message=>"Expected one of [ \\t\\r\\n], \"#\", \"input\", \"filter\", \"output\" at line 83, column 5 (byte 2679) after ", :backtrace=>["C:/logstash-7.15.2/logstash-core/lib/logstash/compiler.rb:32:in `compile_imperative'", "org/logstash/execution/ `initialize'", "org/logstash/execution/ `initialize'", "C:/logstash-7.15.2/logstash-core/lib/logstash/java_pipeline.rb:47:in `initialize'", "C:/logstash-7.15.2/logstash-core/lib/logstash/pipeline_action/create.rb:52:in `execute'", "C:/logstash-7.15.2/logstash-core/lib/logstash/agent.rb:391:in `block in converge_state'"]}
[2021-11-23T21:26:31,927][INFO ][logstash.runner          ] Logstash shut down.
[2021-11-23T21:26:31,936][FATAL][org.logstash.Logstash    ] Logstash stopped processing because of an error: (SystemExit) exit
org.jruby.exceptions.SystemExit: (SystemExit) exit
        at org.jruby.RubyKernel.exit(org/jruby/ ~[jruby-complete-]
        at org.jruby.RubyKernel.exit(org/jruby/ ~[jruby-complete-]
        at C_3a_.logstash_minus_7_dot_15_dot_2.lib.bootstrap.environment.<main>(C:\logstash-7.15.2\lib\bootstrap\environment.rb:94) ~[?:?]

OK, so what does the section of your configuration file around line 83 look like?

1 Like

Badger has a good point, check your .conf file and inspect curly braces.