# Failed to read pipelines yaml file even when in correct folder

**URL:** <https://discuss.elastic.co/t/failed-to-read-pipelines-yaml-file-even-when-in-correct-folder/208987>\
**Category:** Logstash\
**Created:** [November 21, 2019, 10:22pm UTC](https://discuss.elastic.co/t/failed-to-read-pipelines-yaml-file-even-when-in-correct-folder/208987 "2019-11-21T22:22:02Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Mehak\_Bhargava](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/mehak_bhargava/32/54750_2.png) [@Mehak\_Bhargava](https://discuss.elastic.co/u/Mehak_Bhargava)\
**Post date:** [November 21, 2019, 10:22pm UTC](https://discuss.elastic.co/t/failed-to-read-pipelines-yaml-file-even-when-in-correct-folder/208987/1 "2019-11-21T22:22:03Z")

</div>

Hi,

My pipelines.yml is in the logstash/config folder and I still get this error-

```auto
Settings -------------------
[2019-11-21T13:50:15,239][DEBUG][logstash.config.source.multilocal] Reading pipeline configurations from YAML {:location=>"/home/mehak/Documents/logstash-7.4.0/config/pipelines.yml"}
ERROR: Failed to read pipelines yaml file. Location: /home/mehak/Documents/logstash-7.4.0/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
[2019-11-21T13:50:15,304][ERROR][org.logstash.Logstash] java.lang.IllegalStateException: Logstash stopped processing because of an error: (SystemExit) exit

```

This is my pipeline.yml file

```auto
- pipeline.id: Nov1test
   pipeline.workers: 1
   path.config: "/home/mehak/Documents/logstash/first-pipeline.config
   pipeline.batch.size: 1

 - pipeline.id: another_test
   queue.type: persisted
   path.config: "/home/mehak/Documents/logstash/second-pipeline.config"

```

And my second-pipeline/first-pipeline.conf files are in logstash folder. What is the issue here?

---

<div class="post-metadata">

**Author:** ![Badger](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/badger/32/25190_2.png) [@Badger](https://discuss.elastic.co/u/Badger)\
**Post date:** [November 21, 2019, 11:34pm UTC](https://discuss.elastic.co/t/failed-to-read-pipelines-yaml-file-even-when-in-correct-folder/208987/2 "2019-11-21T23:34:15Z")

</div>

Make sure that the user that is running logstash has read and execute permissions on every directory that is part of that path, and that it has read permissions for the file.

---

<div class="post-metadata">

**Author:** ![Mehak\_Bhargava](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/mehak_bhargava/32/54750_2.png) [@Mehak\_Bhargava](https://discuss.elastic.co/u/Mehak_Bhargava)\
**Post date:** [November 21, 2019, 11:46pm UTC](https://discuss.elastic.co/t/failed-to-read-pipelines-yaml-file-even-when-in-correct-folder/208987/3 "2019-11-21T23:46:04Z")

</div>

Got it, I will change the permissions as mentioned. @Badger I am curious if you know anything about this issue in logstash? Thank you!!

> [@Output logs to multiple index from logstash](https://discuss.elastic.co/t/output-logs-to-multiple-index-from-logstash/208991):
>
> Hi there, I am trying to send multiple log files from filebeat tologstash to elasticsearch. In kibana, I would like each log file under a separate index. This is my logstash.conf file: # Sample Logstash configuration for creating a simple # Beats -\> Logstash -\> Elasticsearch pipeline. input { beats { port =\> 5044 } } filter { if[type] =="DispatcherApp"{ grok { match =\> {"message" =\> "%{COMBINEDAPACHELOG}"} } } else if [type] == "IncidentAgent" { grok { …

---

<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:** [December 19, 2019, 11:46pm UTC](https://discuss.elastic.co/t/failed-to-read-pipelines-yaml-file-even-when-in-correct-folder/208987/4 "2019-12-19T23:46:09Z")

</div>

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