# How to use pipelines.yml

**URL:** <https://discuss.elastic.co/t/how-to-use-pipelines-yml/122545>\
**Category:** Logstash\
**Created:** [March 5, 2018, 3:12pm UTC](https://discuss.elastic.co/t/how-to-use-pipelines-yml/122545 "2018-03-05T15:12:25Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![asp](https://avatars.discourse-cdn.com/v4/letter/a/9fc348/32.png) [@asp](https://discuss.elastic.co/u/asp)\
**Post date:** [March 5, 2018, 3:12pm UTC](https://discuss.elastic.co/t/how-to-use-pipelines-yml/122545/1 "2018-03-05T15:12:25Z")

</div>

Hi,

I wanted to try to use multiple pipelines.

Starting from plain logstash 6.2.2 out from tar.gz file.  
Unzipped and chown for all files to logstash:logstash

made following changes to pure logstash.yml:

```
node.name: test
path.logs: /var/log/logstash/benchmark_6.2.2

```

here is my pipelines.yml

```
# useractionlog
- pipeline.id: useractionlog
  pipeline.workers: 1
  pipeline.output.workers: 1
  queue.type: memory
  path.config: "/usr/local/elastic/logsash/pipelines/useractionlog
   
# ttp
- pipeline.id: ttp
  pipeline.workers: 1
  pipeline.output.workers: 1
  queue.type: memory
  path.config: "/usr/local/elastic/logsash/pipelines/ttp

```

trying to start logstash from its bin folder:

```
[root@elasticsearch-test bin]# sudo -u logstash ./logstash --path.settings /usr/local/elastic/logstash/logstash-6.2.2/config/ -t
Sending Logstash's logs to /var/log/logstash/benchmark_6.2.2 which is now configured via log4j2.properties
[2018-03-05T15:02:47,644][INFO][logstash.modules.scaffold] Initializing module {:module_name=>"fb_apache", :directory=>"/usr/local/elastic/logstash/logstash-6.2.2/modules/fb_apache/configuration"}
[2018-03-05T15:02:47,664][INFO][logstash.modules.scaffold] Initializing module {:module_name=>"netflow", :directory=>"/usr/local/elastic/logstash/logstash-6.2.2/modules/netflow/configuration"}
ERROR: Failed to read pipelines yaml file. Location: /usr/local/elastic/logstash/logstash-6.2.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
[2018-03-05T15:02:48,274][ERROR][org.logstash.Logstash] java.lang.IllegalStateException: org.jruby.exceptions.RaiseException: (SystemExit) exit

```

when I check my the pipeline file, permission seems to fit:

```
[root@elasticsearch-test benchmark_6.2.2]# ls -l /usr/local/elastic/logstash/logstash-6.2.2/config/pipelines.yml
-rw-r--r--. 1 logstash logstash 3742 Mar 5 14:23 /usr/local/elastic/logstash/logstash-6.2.2/config/pipelines.yml

```

Where is my mistake?

Thanks, Andreas

---

<div class="post-metadata">

**Author:** ![asp](https://avatars.discourse-cdn.com/v4/letter/a/9fc348/32.png) [@asp](https://discuss.elastic.co/u/asp)\
**Post date:** [March 5, 2018, 3:18pm UTC](https://discuss.elastic.co/t/how-to-use-pipelines-yml/122545/2 "2018-03-05T15:18:09Z")

</div>

> [@asp](#):
>
> path.config: "/usr/local/elastic/logsash/pipelines/useractionlog

ah f\*\*\*  
missing ending quotes...

now it works 😉  
getting more blind the longer you are watching it ...

---

<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:** [April 2, 2018, 3:18pm UTC](https://discuss.elastic.co/t/how-to-use-pipelines-yml/122545/3 "2018-04-02T15:18:29Z")

</div>

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