# Logstash using multiple configuration

**URL:** <https://discuss.elastic.co/t/logstash-using-multiple-configuration/376032>\
**Category:** Logstash\
**Created:** [March 17, 2025, 8:37pm UTC](https://discuss.elastic.co/t/logstash-using-multiple-configuration/376032 "2025-03-17T20:37:50Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Francesco\_Esposito](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/francesco_esposito/32/141865_2.png) [@Francesco\_Esposito](https://discuss.elastic.co/u/Francesco_Esposito)\
**Post date:** [March 17, 2025, 8:37pm UTC](https://discuss.elastic.co/t/logstash-using-multiple-configuration/376032/1 "2025-03-17T20:37:50Z")

</div>

Hello again,

From the previous threads that I have solved, now I have two Logstash configurations, one that output to Http pluging and one to elasticsearch plugin.

I am configuring my D:\logstash-7.17.28\config\pipelines.yml this way:

```auto
 - pipeline.id: test
   pipeline.workers: 1
   pipeline.batch.size: 1
   queue.type: persisted
   queue.page_capacity: 64mb
   queue.max_bytes: 1024mb
   path.config: "D:/logstash-7.17.28/elasticsearch-logstash-v2.conf"
 - pipeline.id: another_test
   pipeline.workers: 1
   pipeline.batch.size: 1
   queue.type: persisted
   queue.page_capacity: 64mb
   queue.max_bytes: 1024mb
   path.config: "D:/logstash-7.17.28/http-logstash.conf"

```

but I receive an error message saying:

```auto
D:\logstash-7.17.28\bin>logstash.bat
"Using bundled JDK: D:\logstash-7.17.28\jdk\bin\java.exe"
OpenJDK 64-Bit Server VM warning: Option UseConcMarkSweepGC was deprecated in version 9.0 and will likely be removed in a future release.
Sending Logstash logs to D:/logstash-7.17.28/logs which is now configured via log4j2.properties
[2025-03-17T16:28:11,872][INFO][logstash.runner] Log4j configuration path used is: D:\logstash-7.17.28\config\log4j2.properties
[2025-03-17T16:28:11,883][INFO][logstash.runner] Starting Logstash {"logstash.version"=>"7.17.28", "jruby.version"=>"jruby 9.2.20.1 (2.5.8) 2021-11-30 2a2962fbd1 OpenJDK 64-Bit Server VM 11.0.26+4 on 11.0.26+4 +indy +jit [mswin32-x86_64]"}
[2025-03-17T16:28:11,885][INFO][logstash.runner] JVM bootstrap flags: [-Xms1g, -Xmx1g, -XX:+UseConcMarkSweepGC, -XX:CMSInitiatingOccupancyFraction=75, -XX:+UseCMSInitiatingOccupancyOnly, -Djava.awt.headless=true, -Dfile.encoding=UTF-8, -Djdk.io.File.enableADS=true, -Djruby.compile.invokedynamic=true, -Djruby.jit.threshold=0, -Djruby.regexp.interruptible=true, -XX:+HeapDumpOnOutOfMemoryError, -Djava.security.egd=file:/dev/urandom, -Dlog4j2.isThreadContextMapInheritable=true]
[2025-03-17T16:28:16,699][ERROR][logstash.config.sourceloader] No configuration found in the configured sources.
[2025-03-17T16:28:16,704][INFO][logstash.agent] Successfully started Logstash API endpoint {:port=>9600, :ssl_enabled=>false}
[2025-03-17T16:28:21,999][INFO][logstash.runner] Logstash shut down.
[2025-03-17T16:28:22,009][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/RubyKernel.java:747) ~[jruby-complete-9.2.20.1.jar:?]
        at org.jruby.RubyKernel.exit(org/jruby/RubyKernel.java:710) ~[jruby-complete-9.2.20.1.jar:?]
        at D_3a_.logstash_minus_7_dot_17_dot_28.lib.bootstrap.environment.<main>(D:\logstash-7.17.28\lib\bootstrap\environment.rb:94) ~[?:?]

```

What am I doing wrong? Why do I receive a message saying: No configuration found in the configured sources?

---

<div class="post-metadata">

**Author:** ![Francesco\_Esposito](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/francesco_esposito/32/141865_2.png) [@Francesco\_Esposito](https://discuss.elastic.co/u/Francesco_Esposito)\
**Post date:** [March 17, 2025, 8:54pm UTC](https://discuss.elastic.co/t/logstash-using-multiple-configuration/376032/2 "2025-03-17T20:54:24Z")

</div>

Just to complete the question, if I force the use of the D:\logstash-7.17.28\config\pipelines.yml I receive another error:

```auto
D:\logstash-7.17.28\bin>logstash.bat -f D:\logstash-7.17.28\config\pipelines.yml
"Using bundled JDK: D:\logstash-7.17.28\jdk\bin\java.exe"
OpenJDK 64-Bit Server VM warning: Option UseConcMarkSweepGC was deprecated in version 9.0 and will likely be removed in a future release.
Sending Logstash logs to D:/logstash-7.17.28/logs which is now configured via log4j2.properties
[2025-03-17T16:50:25,719][INFO][logstash.runner] Log4j configuration path used is: D:\logstash-7.17.28\config\log4j2.properties
[2025-03-17T16:50:25,730][INFO][logstash.runner] Starting Logstash {"logstash.version"=>"7.17.28", "jruby.version"=>"jruby 9.2.20.1 (2.5.8) 2021-11-30 2a2962fbd1 OpenJDK 64-Bit Server VM 11.0.26+4 on 11.0.26+4 +indy +jit [mswin32-x86_64]"}
[2025-03-17T16:50:25,733][INFO][logstash.runner] JVM bootstrap flags: [-Xms1g, -Xmx1g, -XX:+UseConcMarkSweepGC, -XX:CMSInitiatingOccupancyFraction=75, -XX:+UseCMSInitiatingOccupancyOnly, -Djava.awt.headless=true, -Dfile.encoding=UTF-8, -Djdk.io.File.enableADS=true, -Djruby.compile.invokedynamic=true, -Djruby.jit.threshold=0, -Djruby.regexp.interruptible=true, -XX:+HeapDumpOnOutOfMemoryError, -Djava.security.egd=file:/dev/urandom, -Dlog4j2.isThreadContextMapInheritable=true]
[2025-03-17T16:50:25,821][WARN][logstash.config.source.multilocal] Ignoring the 'pipelines.yml' file because modules or command line options are specified
[2025-03-17T16:50:32,010][INFO][logstash.agent] Successfully started Logstash API endpoint {:port=>9600, :ssl_enabled=>false}
[2025-03-17T16:50:32,603][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 9, column 2 (byte 333) after ", :backtrace=>["D:/logstash-7.17.28/logstash-core/lib/logstash/compiler.rb:32:in `compile_imperative'", "org/logstash/execution/AbstractPipelineExt.java:189:in `initialize'", "org/logstash/execution/JavaBasePipelineExt.java:72:in `initialize'", "D:/logstash-7.17.28/logstash-core/lib/logstash/java_pipeline.rb:48:in `initialize'", "D:/logstash-7.17.28/logstash-core/lib/logstash/pipeline_action/create.rb:52:in `execute'", "D:/logstash-7.17.28/logstash-core/lib/logstash/agent.rb:392:in `block in converge_state'"]}
[2025-03-17T16:50:37,822][INFO][logstash.runner] Logstash shut down.
[2025-03-17T16:50:37,834][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/RubyKernel.java:747) ~[jruby-complete-9.2.20.1.jar:?]
        at org.jruby.RubyKernel.exit(org/jruby/RubyKernel.java:710) ~[jruby-complete-9.2.20.1.jar:?]
        at D_3a_.logstash_minus_7_dot_17_dot_28.lib.bootstrap.environment.<main>(D:\logstash-7.17.28\lib\bootstrap\environment.rb:94) ~[?:?]

```

---

<div class="post-metadata">

**Author:** ![leandrojmp](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/leandrojmp/32/107231_2.png) [@leandrojmp](https://discuss.elastic.co/u/leandrojmp)\
**Post date:** [March 17, 2025, 9:49pm UTC](https://discuss.elastic.co/t/logstash-using-multiple-configuration/376032/3 "2025-03-17T21:49:19Z")

</div>

Are the files in the correct path?

This issue normally happens when the files cannot be found.

---

<div class="post-metadata">

**Author:** ![Rios](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/rios/32/95745_2.png) [@Rios](https://discuss.elastic.co/u/Rios)\
**Post date:** [March 18, 2025, 9:18am UTC](https://discuss.elastic.co/t/logstash-using-multiple-configuration/376032/4 "2025-03-18T09:18:31Z")

</div>

You should start LS:

`D:\logstash-7.17.28\bin>logstash.bat --path.settings D:\logstash-7.17.28\config`

In pipeline.yml should change to the backslash, without quotes:  
`path.config: D:\logstash-7.17.28\elasticsearch-logstash-v2.conf`  
or this notation for quotes.  
`path.config: "D:\\logstash-7.17.28\\http-logstash.conf"`

---

<div class="post-metadata">

**Author:** ![Francesco\_Esposito](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/francesco_esposito/32/141865_2.png) [@Francesco\_Esposito](https://discuss.elastic.co/u/Francesco_Esposito)\
**Post date:** [March 18, 2025, 2:33pm UTC](https://discuss.elastic.co/t/logstash-using-multiple-configuration/376032/5 "2025-03-18T14:33:40Z")

</div>

Thanks everyone. Yes, the path was wrong.
