# Logstash pipeline.yml error

**URL:** <https://discuss.elastic.co/t/logstash-pipeline-yml-error/251441>\
**Category:** Logstash\
**Created:** [October 8, 2020, 12:58pm UTC](https://discuss.elastic.co/t/logstash-pipeline-yml-error/251441 "2020-10-08T12:58:35Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![Bhavin\_Varsur](https://avatars.discourse-cdn.com/v4/letter/b/ecccb3/32.png) [@Bhavin\_Varsur](https://discuss.elastic.co/u/Bhavin_Varsur)\
**Post date:** [October 8, 2020, 12:58pm UTC](https://discuss.elastic.co/t/logstash-pipeline-yml-error/251441/1 "2020-10-08T12:58:35Z")

</div>

I've one logstash pipeline.which is given in pipeline.yml.  
but when i run `bin/logstash.bat` command in powershell i'm getting error  
which is look like this

```
 ERROR: Failed to read pipelines yaml file. Location: D:/Elastic/logstash-7.9.2/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 [2020-10-08T18:11:20,482][ERROR][org.logstash.Logstash] java.lang.IllegalStateException: Logstash stopped processing because of an error: (SystemExit) exit

```

**pipeline.yml**

```
   - pipeline.id : myPipe1
      pipeline.workers :2
      pipeline.batch.size: 2
      path.config:"D:\Elastic\logstash-7.9.2\third-pipeline.conf"

```

What i'm doing wrong? and how to solve this?

---

<div class="post-metadata">

**Author:** ![humartinez](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/humartinez/32/46395_2.png) [@humartinez](https://discuss.elastic.co/u/humartinez)\
**Post date:** [October 8, 2020, 1:37pm UTC](https://discuss.elastic.co/t/logstash-pipeline-yml-error/251441/2 "2020-10-08T13:37:03Z")

</div>

May be It helps to avoid the aditional spaces spaces between the keys and the ":" character

```auto
   - pipeline.id: myPipe1
      pipeline.workers: 2
      pipeline.batch.size: 2
      path.config: "D:\Elastic\logstash-7.9.2\third-pipeline.conf"

```

---

<div class="post-metadata">

**Author:** ![Bhavin\_Varsur](https://avatars.discourse-cdn.com/v4/letter/b/ecccb3/32.png) [@Bhavin\_Varsur](https://discuss.elastic.co/u/Bhavin_Varsur)\
**Post date:** [October 8, 2020, 3:42pm UTC](https://discuss.elastic.co/t/logstash-pipeline-yml-error/251441/3 "2020-10-08T15:42:13Z")

</div>

I tried but it don't work

---

<div class="post-metadata">

**Author:** ![humartinez](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/humartinez/32/46395_2.png) [@humartinez](https://discuss.elastic.co/u/humartinez)\
**Post date:** [October 8, 2020, 4:21pm UTC](https://discuss.elastic.co/t/logstash-pipeline-yml-error/251441/4 "2020-10-08T16:21:51Z")

</div>

filename issues? pipelines.yml vs pipeline.yml, It should be pipelines.yml

---

<div class="post-metadata">

**Author:** ![Bhavin\_Varsur](https://avatars.discourse-cdn.com/v4/letter/b/ecccb3/32.png) [@Bhavin\_Varsur](https://discuss.elastic.co/u/Bhavin_Varsur)\
**Post date:** [October 8, 2020, 4:35pm UTC](https://discuss.elastic.co/t/logstash-pipeline-yml-error/251441/5 "2020-10-08T16:35:02Z")

</div>

I don't think this is file issue. you can see different file name.

---

<div class="post-metadata">

**Author:** ![kavierkoo](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/kavierkoo/32/86555_2.png) [@kavierkoo](https://discuss.elastic.co/u/kavierkoo)\
**Post date:** [October 8, 2020, 4:44pm UTC](https://discuss.elastic.co/t/logstash-pipeline-yml-error/251441/6 "2020-10-08T16:44:53Z")

</div>

> [@Bhavin\_Varsur](#):
>
> `path.config:"D:\Elastic\logstash-7.9.2\third-pipeline.conf"`

`Single backslash \` is treated as an escape character,  
please try to use double backslash `\\` instead of single back slash `\` in your path to see if that will work.

---

<div class="post-metadata">

**Author:** ![Bhavin\_Varsur](https://avatars.discourse-cdn.com/v4/letter/b/ecccb3/32.png) [@Bhavin\_Varsur](https://discuss.elastic.co/u/Bhavin_Varsur)\
**Post date:** [October 8, 2020, 4:56pm UTC](https://discuss.elastic.co/t/logstash-pipeline-yml-error/251441/7 "2020-10-08T16:56:23Z")

</div>

nothing change.same error getting.

---

<div class="post-metadata">

**Author:** ![kavierkoo](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/kavierkoo/32/86555_2.png) [@kavierkoo](https://discuss.elastic.co/u/kavierkoo)\
**Post date:** [October 8, 2020, 5:49pm UTC](https://discuss.elastic.co/t/logstash-pipeline-yml-error/251441/8 "2020-10-08T17:49:34Z")

</div>

> [@Bhavin\_Varsur](#):
>
> `ERROR: Failed to read pipelines yaml file. Location: D:/Elastic/logstash-7.9.2/config/pipelines.yml`

Just wanted to check again, as what @humartinez said,  
Inside your `D:/Elastic/logstash-7.9.2/config/` , the pipeline file named  
`pipelines.yml` or `pipeline.yml` it makes a different.

and `pipeline.yml` should be like this

```auto
   - pipeline.id: myPipe1
      pipeline.workers: 2
      pipeline.batch.size: 2
      path.config: "D:\\Elastic\\logstash-7.9.2\\third-pipeline.conf"

```

If it still doesnt work, please share some debug log with  
`bin/logstash.bat --log.level debug --config.debug`

---

<div class="post-metadata">

**Author:** ![Bhavin\_Varsur](https://avatars.discourse-cdn.com/v4/letter/b/ecccb3/32.png) [@Bhavin\_Varsur](https://discuss.elastic.co/u/Bhavin_Varsur)\
**Post date:** [October 8, 2020, 6:08pm UTC](https://discuss.elastic.co/t/logstash-pipeline-yml-error/251441/9 "2020-10-08T18:08:46Z")

</div>

its working just a space problem like what @humartinez said and used `\\` back slash together it works.  
Thank you so much both of you @humartinez @kavierkoo

---

<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:** [November 5, 2020, 6:08pm UTC](https://discuss.elastic.co/t/logstash-pipeline-yml-error/251441/10 "2020-11-05T18:08:49Z")

</div>

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