# Logstash fails to start | Multiple pipelines

**URL:** <https://discuss.elastic.co/t/logstash-fails-to-start-multiple-pipelines/130250>\
**Category:** Logstash\
**Created:** [May 2, 2018, 1:01pm UTC](https://discuss.elastic.co/t/logstash-fails-to-start-multiple-pipelines/130250 "2018-05-02T13:01:57Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![Deepak\_Singh](https://avatars.discourse-cdn.com/v4/letter/d/3be4f8/32.png) [@Deepak\_Singh](https://discuss.elastic.co/u/Deepak_Singh)\
**Post date:** [May 2, 2018, 1:01pm UTC](https://discuss.elastic.co/t/logstash-fails-to-start-multiple-pipelines/130250/1 "2018-05-02T13:01:57Z")

</div>

Hi,  
I am trying to set up multiple pipelines, as described here : [https://www.elastic.co/guide/en/logstash/current/multiple-pipelines.html](https://www.elastic.co/guide/en/logstash/current/multiple-pipelines.html)  
I have set up the .conf and pipelines.yml file correctly, but when try to start logstash (bin/logstash), it fails with below error:

```
WARNING: Could not find logstash.yml which is typically located in $LS_HOME/config or /etc/logstash. You can specify the path using --path.settings. Continuing using the defaults
Could not find log4j2 configuration at path /usr/share/logstash/config/log4j2.properties. Using default config which logs errors to the console
[INFO] 2018-05-02 12:54:23.597 [main] scaffold - Initializing module {:module_name=>"fb_apache", :directory=>"/usr/share/logstash/modules/fb_apache/configuration"}
[INFO] 2018-05-02 12:54:23.611 [main] scaffold - Initializing module {:module_name=>"netflow", :directory=>"/usr/share/logstash/modules/netflow/configuration"}
ERROR: Failed to read pipelines yaml file. Location: /usr/share/logstash/config/pipelines.yml
usage:
  bin/logstash -f CONFIG_PATH [-t] [-r] [] [-w COUNT] [-l LOG]
  bin/logstash --modules MODULE_NAME [-M "MODULE_NAME.var.PLUGIN_TYPE.PLUGIN_NAME.VARIABLE_NAME=VALUE"] [-t] [-w COUNT] [-l LOG]
  bin/logstash -e CONFIG_STR [-t] [--log.level fatal|error|warn|info|debug|trace] [-w COUNT] [-l LOG]
  bin/logstash -i SHELL [--log.level fatal|error|warn|info|debug|trace]
  bin/logstash -V [--log.level fatal|error|warn|info|debug|trace]
  bin/logstash --help
[ERROR] 2018-05-02 12:54:24.007 [LogStash::Runner] Logstash - java.lang.IllegalStateException: org.jruby.exceptions.RaiseException: (SystemExit) exit

```

Tried the fixes discussed on same problem by other users but nothing worked.

here's snapshot of my very basic pipelines.yml:  
 ![image](https://us1.discourse-cdn.com/elastic/original/3X/0/f/0f3389ecba5990c025e5c6513addcfe584d260d0.png)

Please help, as this is a blocker for us on weather to go ahead with logstash or not as technology choice

Thanks in advance

---

<div class="post-metadata">

**Author:** ![magnusbaeck](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/magnusbaeck/32/44943_2.png) [@magnusbaeck](https://discuss.elastic.co/u/magnusbaeck)\
**Post date:** [May 2, 2018, 1:23pm UTC](https://discuss.elastic.co/t/logstash-fails-to-start-multiple-pipelines/130250/2 "2018-05-02T13:23:48Z")

</div>

And in what directory is your pipelines.yml?

---

<div class="post-metadata">

**Author:** ![Deepak\_Singh](https://avatars.discourse-cdn.com/v4/letter/d/3be4f8/32.png) [@Deepak\_Singh](https://discuss.elastic.co/u/Deepak_Singh)\
**Post date:** [May 2, 2018, 1:45pm UTC](https://discuss.elastic.co/t/logstash-fails-to-start-multiple-pipelines/130250/3 "2018-05-02T13:45:17Z")

</div>

'settings' directory

 ![image](https://us1.discourse-cdn.com/elastic/original/3X/2/3/23610c0feedb58d6987242946e4f2f45174bdfef.png)

as this is where my path.settings is set in startup.options  
 ![image](https://us1.discourse-cdn.com/elastic/original/3X/d/2/d20d0d66963c178802943247c26048878ea99604.png)

---

<div class="post-metadata">

**Author:** ![magnusbaeck](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/magnusbaeck/32/44943_2.png) [@magnusbaeck](https://discuss.elastic.co/u/magnusbaeck)\
**Post date:** [May 2, 2018, 2:28pm UTC](https://discuss.elastic.co/t/logstash-fails-to-start-multiple-pipelines/130250/4 "2018-05-02T14:28:42Z")

</div>

startup.options isn't used when you're starting Logstash from your shell with `bin/logstash`.

> <https://github.com/elastic/logstash/blob/e25aa0b8454a4784a88b7b6fc36f7210c2a4c0c7/config/startup.options#L2-L5>

---

<div class="post-metadata">

**Author:** ![Deepak\_Singh](https://avatars.discourse-cdn.com/v4/letter/d/3be4f8/32.png) [@Deepak\_Singh](https://discuss.elastic.co/u/Deepak_Singh)\
**Post date:** [May 2, 2018, 3:03pm UTC](https://discuss.elastic.co/t/logstash-fails-to-start-multiple-pipelines/130250/5 "2018-05-02T15:03:52Z")

</div>

So then, where shall be the pipeline.yml be stored, to be picked up by when its run from shell?

---

<div class="post-metadata">

**Author:** ![magnusbaeck](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/magnusbaeck/32/44943_2.png) [@magnusbaeck](https://discuss.elastic.co/u/magnusbaeck)\
**Post date:** [May 2, 2018, 4:11pm UTC](https://discuss.elastic.co/t/logstash-fails-to-start-multiple-pipelines/130250/6 "2018-05-02T16:11:05Z")

</div>

The error message tells you where it expects the file to be.

---

<div class="post-metadata">

**Author:** ![Deepak\_Singh](https://avatars.discourse-cdn.com/v4/letter/d/3be4f8/32.png) [@Deepak\_Singh](https://discuss.elastic.co/u/Deepak_Singh)\
**Post date:** [May 3, 2018, 5:01pm UTC](https://discuss.elastic.co/t/logstash-fails-to-start-multiple-pipelines/130250/7 "2018-05-03T17:01:04Z")

</div>

Well putting the pipelines.yml at that path got the multiple pipelines working.

But would appreciate is there's a page that specifies the difference in settings, file-paths etc when running from different modes.

Thanks.

---

<div class="post-metadata">

**Author:** ![magnusbaeck](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/magnusbaeck/32/44943_2.png) [@magnusbaeck](https://discuss.elastic.co/u/magnusbaeck)\
**Post date:** [May 3, 2018, 5:16pm UTC](https://discuss.elastic.co/t/logstash-fails-to-start-multiple-pipelines/130250/8 "2018-05-03T17:16:27Z")

</div>

See [https://www.elastic.co/guide/en/logstash/current/dir-layout.html](https://www.elastic.co/guide/en/logstash/current/dir-layout.html).

---

<div class="post-metadata">

**Author:** ![Saketh\_Chandra\_Kolis](https://avatars.discourse-cdn.com/v4/letter/s/58956e/32.png) [@Saketh\_Chandra\_Kolis](https://discuss.elastic.co/u/Saketh_Chandra_Kolis)\
**Post date:** [May 28, 2018, 4:43am UTC](https://discuss.elastic.co/t/logstash-fails-to-start-multiple-pipelines/130250/9 "2018-05-28T04:43:26Z")

</div>

hi deepak,  
I am using a windows operating system,where should i store my pipelines.yml file?It is not clear in the logstash documentation.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [June 25, 2018, 4:43am UTC](https://discuss.elastic.co/t/logstash-fails-to-start-multiple-pipelines/130250/10 "2018-06-25T04:43:27Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
