# In RHEL how to run Configuration file along with logstash?

**URL:** <https://discuss.elastic.co/t/in-rhel-how-to-run-configuration-file-along-with-logstash/121479>\
**Category:** Logstash\
**Created:** [February 26, 2018, 12:04pm UTC](https://discuss.elastic.co/t/in-rhel-how-to-run-configuration-file-along-with-logstash/121479 "2018-02-26T12:04:01Z")\
**Posts on this page:** 20\
**Page:** 2

<div class="post-metadata">

**Author:** ![naveen\_K.N](https://avatars.discourse-cdn.com/v4/letter/n/8e8cbc/32.png) [@naveen\_K.N](https://discuss.elastic.co/u/naveen_K.N)\
**Post date:** [March 15, 2018, 4:31am UTC](https://discuss.elastic.co/t/in-rhel-how-to-run-configuration-file-along-with-logstash/121479/21 "2018-03-15T04:31:43Z")

</div>

Hi @magnusbaeck

In RHEL environment we dont have pipelines.yml file to make changes to create multiple pipelines.

so i did configuration in Logstash.yml file as follows:

#------------ Pipeline Settings --------------

- pipeline.id: monerrorlog-pipeline  
path.config: "/etc/logstash/conf.d/mon-errorlog.conf"  
pipeline.workers: 1
- pipeline.id: monserverlog-pipeline  
path.config: "/etc/logstash/conf.d/mon-serverlogs.conf"  
pipeline.workers: 1
- pipeline.id: sl1a-pipeline  
path.config: "/etc/logstash/conf.d/sl1a-serverlogs.conf"  
pipeline.workers: 1
- pipeline.id: sl2a-pipeline  
path.config: "/etc/logstash/conf.d/sl2a-serverlogs.conf"  
pipeline.workers: 1
- pipeline.id: sl2b-pipeline  
path.config: "/etc/logstash/conf.d/sl2b-serverlogs.conf"  
pipeline.workers: 1
- pipeline.id: sl2c-pipeline  
path.config: "/etc/logstash/conf.d/sl2c-serverlogs.conf"  
pipeline.workers: 1
- pipeline.id: sl3a-pipeline  
path.config: "/etc/logstash/conf.d/sl3a-serverlogs.conf"  
pipeline.workers: 1
- pipeline.id: sl3b-pipeline  
path.config: "/etc/logstash/conf.d/sl3b-serverlogs.conf"  
pipeline.workers: 1
- pipeline.id: sl3c-pipeline  
path.config: "/etc/logstash/conf.d/sl3c-serverlogs.conf"  
pipeline.workers: 1
- pipeline.id: sl3d-pipeline  
path.config: "/etc/logstash/conf.d/sl3d-serverlogs.conf"  
pipeline.workers: 1

#------------ Pipeline Configuration Settings --------------  
#Where to fetch the pipeline configuration for the main pipeline

# 

#path.config: /etc/logstash/conf.d/\*.conf

# 

#Pipeline configuration string for the main pipeline

# 

#config.string:

# 

#At startup, test if the configuration is valid and exit (dry run)

# 

#config.test\_and\_exit: false

# 

#Periodically check if the configuration has changed and reload the pipeline  
#This can also be triggered manually through the SIGHUP signal

# 

#config.reload.automatic: false

# 

#How often to check if the pipeline configuration has changed (in seconds)

# 

#config.reload.interval: 3s

# 

#Show fully compiled configuration as debug log message  
#NOTE: --log.level must be 'debug'

# 

#config.debug: false

# 

#When enabled, process escaped characters such as \n and " in strings in the  
#pipeline configuration files.

# 

#config.support\_escapes: false  
.....

so am i done configuration correct??

let me know if any changes required!

Thanks,  
Naveena K N

---

<div class="post-metadata">

**Author:** ![Christian\_Dahlqvist](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/christian_dahlqvist/32/4617_2.png) [@Christian\_Dahlqvist](https://discuss.elastic.co/u/Christian_Dahlqvist)\
**Post date:** [March 15, 2018, 5:29am UTC](https://discuss.elastic.co/t/in-rhel-how-to-run-configuration-file-along-with-logstash/121479/22 "2018-03-15T05:29:15Z")

</div>

Which version of Logstash have you installed?

---

<div class="post-metadata">

**Author:** ![naveen\_K.N](https://avatars.discourse-cdn.com/v4/letter/n/8e8cbc/32.png) [@naveen\_K.N](https://discuss.elastic.co/u/naveen_K.N)\
**Post date:** [March 15, 2018, 5:30am UTC](https://discuss.elastic.co/t/in-rhel-how-to-run-configuration-file-along-with-logstash/121479/23 "2018-03-15T05:30:24Z")

</div>

hi @Christian_Dahlqvist

its Logstash 6.0.0 in RHEL

---

<div class="post-metadata">

**Author:** ![Suman\_Reddy1](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/suman_reddy1/32/27303_2.png) [@Suman\_Reddy1](https://discuss.elastic.co/u/Suman_Reddy1)\
**Post date:** [March 15, 2018, 5:45am UTC](https://discuss.elastic.co/t/in-rhel-how-to-run-configuration-file-along-with-logstash/121479/24 "2018-03-15T05:45:21Z")

</div>

> [@naveen\_K.N](#):
>
> so i did configuration in Logstash.yml file as follows:

Since 6.x they introduced pipelines configuration. You should be able to see pipelines.yml file in your logstash installation folder. Anyway let me download and see.

> [@Does 5.6.X support Logstash Multiple pipelining](https://discuss.elastic.co/t/does-5-6-x-support-logstash-multiple-pipelining/120603):
>
> team, Could you please let me know that, I can achieve Logstash muliple pipelines feature using Logstash 5.6.2 ? Thanks.

---

<div class="post-metadata">

**Author:** ![naveen\_K.N](https://avatars.discourse-cdn.com/v4/letter/n/8e8cbc/32.png) [@naveen\_K.N](https://discuss.elastic.co/u/naveen_K.N)\
**Post date:** [March 15, 2018, 5:47am UTC](https://discuss.elastic.co/t/in-rhel-how-to-run-configuration-file-along-with-logstash/121479/25 "2018-03-15T05:47:22Z")

</div>

ya suman...please let me know aftr installing  
Thanks,  
Naveena K N

---

<div class="post-metadata">

**Author:** ![Suman\_Reddy1](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/suman_reddy1/32/27303_2.png) [@Suman\_Reddy1](https://discuss.elastic.co/u/Suman_Reddy1)\
**Post date:** [March 15, 2018, 5:48am UTC](https://discuss.elastic.co/t/in-rhel-how-to-run-configuration-file-along-with-logstash/121479/26 "2018-03-15T05:48:20Z")

</div>

If it is not there try to create pipelines.yml file in you config folder and start logstash with bin/logstash -r option

---

<div class="post-metadata">

**Author:** ![naveen\_K.N](https://avatars.discourse-cdn.com/v4/letter/n/8e8cbc/32.png) [@naveen\_K.N](https://discuss.elastic.co/u/naveen_K.N)\
**Post date:** [March 15, 2018, 5:51am UTC](https://discuss.elastic.co/t/in-rhel-how-to-run-configuration-file-along-with-logstash/121479/27 "2018-03-15T05:51:23Z")

</div>

its in RHEL operating system , so are you sure we can start using bin/logstash -r??

---

<div class="post-metadata">

**Author:** ![Suman\_Reddy1](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/suman_reddy1/32/27303_2.png) [@Suman\_Reddy1](https://discuss.elastic.co/u/Suman_Reddy1)\
**Post date:** [March 15, 2018, 5:55am UTC](https://discuss.elastic.co/t/in-rhel-how-to-run-configuration-file-along-with-logstash/121479/28 "2018-03-15T05:55:45Z")

</div>

> [@naveen\_K.N](#):
>
> its in RHEL operating system , so are you sure we can start using bin/logstash -r??

Well that am not sure of. Ours is Linux - GNU/Linux. Try to start it in your local machine. Then you can try it in RHEL or anywhere. Or your local itself is RHEL? 😛

---

<div class="post-metadata">

**Author:** ![naveen\_K.N](https://avatars.discourse-cdn.com/v4/letter/n/8e8cbc/32.png) [@naveen\_K.N](https://discuss.elastic.co/u/naveen_K.N)\
**Post date:** [March 15, 2018, 5:56am UTC](https://discuss.elastic.co/t/in-rhel-how-to-run-configuration-file-along-with-logstash/121479/29 "2018-03-15T05:56:25Z")

</div>

ok will wait for ELK team Response

---

<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:** [March 15, 2018, 10:26am UTC](https://discuss.elastic.co/t/in-rhel-how-to-run-configuration-file-along-with-logstash/121479/30 "2018-03-15T10:26:31Z")

</div>

> its in RHEL operating system , so are you sure we can start using bin/logstash -r??

The choice of Linux distribution doesn't affect whether the `-r` option works.

---

<div class="post-metadata">

**Author:** ![naveen\_K.N](https://avatars.discourse-cdn.com/v4/letter/n/8e8cbc/32.png) [@naveen\_K.N](https://discuss.elastic.co/u/naveen_K.N)\
**Post date:** [March 15, 2018, 10:35am UTC](https://discuss.elastic.co/t/in-rhel-how-to-run-configuration-file-along-with-logstash/121479/31 "2018-03-15T10:35:54Z")

</div>

pipelines.yml file is not there.!!

shall i add pipelines.yml??

Thanks,  
Naveena K N

---

<div class="post-metadata">

**Author:** ![Suman\_Reddy1](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/suman_reddy1/32/27303_2.png) [@Suman\_Reddy1](https://discuss.elastic.co/u/Suman_Reddy1)\
**Post date:** [March 16, 2018, 5:24am UTC](https://discuss.elastic.co/t/in-rhel-how-to-run-configuration-file-along-with-logstash/121479/32 "2018-03-16T05:24:49Z")

</div>

> [@naveen\_K.N](#):
>
> ok will wait for ELK team Response

try adding it. There is nothing wrong in trying right.!

---

<div class="post-metadata">

**Author:** ![naveen\_K.N](https://avatars.discourse-cdn.com/v4/letter/n/8e8cbc/32.png) [@naveen\_K.N](https://discuss.elastic.co/u/naveen_K.N)\
**Post date:** [March 16, 2018, 6:18am UTC](https://discuss.elastic.co/t/in-rhel-how-to-run-configuration-file-along-with-logstash/121479/33 "2018-03-16T06:18:26Z")

</div>

yes suman, we asked team who are have permissions to upload file in the current working environment...

Thanks,  
Naveena

---

<div class="post-metadata">

**Author:** ![Suman\_Reddy1](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/suman_reddy1/32/27303_2.png) [@Suman\_Reddy1](https://discuss.elastic.co/u/Suman_Reddy1)\
**Post date:** [March 16, 2018, 5:52pm UTC](https://discuss.elastic.co/t/in-rhel-how-to-run-configuration-file-along-with-logstash/121479/34 "2018-03-16T17:52:53Z")

</div>

What I would suggest or prefered to do is.. Do the testing and all the stuff in your local machine and if the configuration works well go to the higher environment. That way you can save lot of time. Just think about it.

---

<div class="post-metadata">

**Author:** ![naveen\_K.N](https://avatars.discourse-cdn.com/v4/letter/n/8e8cbc/32.png) [@naveen\_K.N](https://discuss.elastic.co/u/naveen_K.N)\
**Post date:** [March 19, 2018, 9:13am UTC](https://discuss.elastic.co/t/in-rhel-how-to-run-configuration-file-along-with-logstash/121479/35 "2018-03-19T09:13:19Z")

</div>

yes iam testing it in local also with pipeline.yml having :

pipeline.id: test  
pipeline.workers: 2  
pipeline.batch.size: 1  
path.config: "C:\Users\nakn\Downloads\logstash-6.1.1\bin\config\logs-server.conf"

but when i tried to run logstash as follows:

> bin/logstash

im getting error as Failed to read pipelines yaml file !!  
why am i getting this error??

Thanks,  
Naveena

---

<div class="post-metadata">

**Author:** ![Suman\_Reddy1](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/suman_reddy1/32/27303_2.png) [@Suman\_Reddy1](https://discuss.elastic.co/u/Suman_Reddy1)\
**Post date:** [March 19, 2018, 9:18am UTC](https://discuss.elastic.co/t/in-rhel-how-to-run-configuration-file-along-with-logstash/121479/36 "2018-03-19T09:18:57Z")

</div>

Can we have detailed fail log?

---

<div class="post-metadata">

**Author:** ![naveen\_K.N](https://avatars.discourse-cdn.com/v4/letter/n/8e8cbc/32.png) [@naveen\_K.N](https://discuss.elastic.co/u/naveen_K.N)\
**Post date:** [March 19, 2018, 9:22am UTC](https://discuss.elastic.co/t/in-rhel-how-to-run-configuration-file-along-with-logstash/121479/37 "2018-03-19T09:22:18Z")

</div>

ya sure

 ![Capture](https://us1.discourse-cdn.com/elastic/original/3X/1/0/10a0c6bb0e666e91938bacf088c2cb667c0878aa.PNG)

---

<div class="post-metadata">

**Author:** ![Suman\_Reddy1](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/suman_reddy1/32/27303_2.png) [@Suman\_Reddy1](https://discuss.elastic.co/u/Suman_Reddy1)\
**Post date:** [March 19, 2018, 9:24am UTC](https://discuss.elastic.co/t/in-rhel-how-to-run-configuration-file-along-with-logstash/121479/38 "2018-03-19T09:24:43Z")

</div>

> [@naveen\_K.N](#):
>
> config

I dont see any error here

---

<div class="post-metadata">

**Author:** ![naveen\_K.N](https://avatars.discourse-cdn.com/v4/letter/n/8e8cbc/32.png) [@naveen\_K.N](https://discuss.elastic.co/u/naveen_K.N)\
**Post date:** [March 19, 2018, 9:31am UTC](https://discuss.elastic.co/t/in-rhel-how-to-run-configuration-file-along-with-logstash/121479/39 "2018-03-19T09:31:23Z")

</div>

ya but while running in command promt im getting this:

 ![Capture](https://us1.discourse-cdn.com/elastic/original/3X/0/7/074f37c3abb266d7f385e8e5c010e3c8e9973a6e.PNG)

---

<div class="post-metadata">

**Author:** ![Suman\_Reddy1](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/suman_reddy1/32/27303_2.png) [@Suman\_Reddy1](https://discuss.elastic.co/u/Suman_Reddy1)\
**Post date:** [March 19, 2018, 1:56pm UTC](https://discuss.elastic.co/t/in-rhel-how-to-run-configuration-file-along-with-logstash/121479/40 "2018-03-19T13:56:03Z")

</div>

> [@naveen\_K.N](#):
>
> but

Please attach pipelines file

[Previous page](https://discuss.elastic.co/t/in-rhel-how-to-run-configuration-file-along-with-logstash/121479.md?page=1)

[Next page](https://discuss.elastic.co/t/in-rhel-how-to-run-configuration-file-along-with-logstash/121479.md?page=3)
