hi guys need some help new to elk . my logstash works fine when i run in cmd but when i start it from windows service i get errors .
Ignoring the 'pipelines.yml' file because modules or command line options are specified
[2019-07-16T23:02:03,249][INFO ][logstash.runner ] Starting Logstash {"logstash.version"=>"7.2.0"}
[2019-07-16T23:02:03,857][ERROR][logstash.agent ] Failed to execute action {:action=>LogStash::PipelineAction::Create/pipeline_id:main, :exception=>"LogStash::ConfigurationError", :message=>"Expected one of #, input, filter, output at line 17, column 1 (byte 407) after #!/bin/bash\n# Run logstash from source\n#\n# This is most useful when done from a git checkout.\n#\n# Usage:\n# bin/logstash [arguments]\n#\n# See 'bin/logstash --help' for a list of commands.\n#\n# Supported environment variables:\n# LS_JAVA_OPTS="xxx" to append extra options to the JVM options provided by logstash\n#\n# Development environment variables:\n# DEBUG=1 to output debugging information\n\n", :backtrace=>["E:/ELK/logstash/logstash-core/lib/logstash/compiler.rb:41:in compile_imperative'", "E:/ELK/logstash/logstash-core/lib/logstash/compiler.rb:49:in
compile_graph'", "E:/ELK/logstash/logstash-core/lib/logstash/compiler.rb:11:in block in compile_sources'", "org/jruby/RubyArray.java:2577:in
map'", "E:/ELK/logstash/logstash-core/lib/logstash/compiler.rb:10:in compile_sources'", "org/logstash/execution/AbstractPipelineExt.java:151:in
initialize'", "org/logstash/execution/JavaBasePipelineExt.java:47:in initialize'", "E:/ELK/logstash/logstash-core/lib/logstash/java_pipeline.rb:24:in
initialize'", "E:/ELK/logstash/logstash-core/lib/logstash/pipeline_action/create.rb:36:in execute'", "E:/ELK/logstash/logstash-core/lib/logstash/agent.rb:325:in
block in converge_state'"]}
[2019-07-16T23:02:04,102][INFO ][logstash.agent ] Successfully started Logstash API endpoint {:port=>9600}
[2019-07-16T23:02:09,065][INFO ][logstash.runner ] Logstash shut down.
my pipeline.yml file
- pipeline.id: pipeline-http
pipeline.workers: 1
path.config: "/ELK/logstash/config/logstash_http_elasticsearch.conf" - pipeline.id: pipeline-filebeat
pipeline.workers: 1
path.config: "/ELK/logstash/config/logstash_filebeat_elasticsearch.conf"
Thankyou