# Pipelines.yml and best practices using this approach (+auto config reload)

**URL:** https://discuss.elastic.co/t/pipelines-yml-and-best-practices-using-this-approach-auto-config-reload/175824
**Category:** Logstash
**Created:** [April 8, 2019, 11:33am UTC](https://discuss.elastic.co/t/pipelines-yml-and-best-practices-using-this-approach-auto-config-reload/175824 "2019-04-08T11:33:47Z")
**Posts on this page:** 6
**Page:** 1

<div class="post-metadata">

### Author: ![saif3r](https://avatars.discourse-cdn.com/v4/letter/s/49beb7/32.png) [@saif3r](https://discuss.elastic.co/u/saif3r)
#### Post date: [April 8, 2019, 11:33am UTC](https://discuss.elastic.co/t/pipelines-yml-and-best-practices-using-this-approach-auto-config-reload/175824/1 "2019-04-08T11:33:47Z")

</div>

Hello Guys,

I just created several different pipelines and I'm running them using pipelines.yml and systemctl command to control logstash service. I have a few questions regarding this approach, I hope you can answer them:

1. systemctl stop logstash.service stops all pipelines defined in the pipielines.yml. Is it possible to stop single pipeline using this approach?
2. Is it possible to automaticaly relog a config of one particular pipeline (similar to config.reload.automatic)?
3. What is the best practice for an architecture focused around different pipelines? I plan to have a few jdbc and flat files pipelines and I'm looking for best approach to do so. As for now, using pipelines.yml seems to be an obvious choice.

Thanks in advance.

---

<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: [April 8, 2019, 12:08pm UTC](https://discuss.elastic.co/t/pipelines-yml-and-best-practices-using-this-approach-auto-config-reload/175824/2 "2019-04-08T12:08:47Z")

</div>

For 2 ... yes, if you enable -r then if you update the configuration of a single pipeline it will get reloaded.

---

<div class="post-metadata">

### Author: ![saif3r](https://avatars.discourse-cdn.com/v4/letter/s/49beb7/32.png) [@saif3r](https://discuss.elastic.co/u/saif3r)
#### Post date: [April 9, 2019, 12:46pm UTC](https://discuss.elastic.co/t/pipelines-yml-and-best-practices-using-this-approach-auto-config-reload/175824/3 "2019-04-09T12:46:31Z")

</div>

I launched logstash service using below command

> sudo systemctl start logstash.service -r

and it seems like my configuration changes have no effect. The pipieline continues to work with initial settings.

---

<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: [April 9, 2019, 12:55pm UTC](https://discuss.elastic.co/t/pipelines-yml-and-best-practices-using-this-approach-auto-config-reload/175824/4 "2019-04-09T12:55:47Z")

</div>

Run

```
sudo systemctl show logstash

```

It should include a line like

```
FragmentPath=/etc/systemd/system/logstash.service

```

Edit that file and change the ExecStart line to include -r.

---

<div class="post-metadata">

### Author: ![saif3r](https://avatars.discourse-cdn.com/v4/letter/s/49beb7/32.png) [@saif3r](https://discuss.elastic.co/u/saif3r)
#### Post date: [April 9, 2019, 1:32pm UTC](https://discuss.elastic.co/t/pipelines-yml-and-best-practices-using-this-approach-auto-config-reload/175824/5 "2019-04-09T13:32:46Z")

</div>

This is great, thank you!

---

<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: [May 7, 2019, 1:32pm UTC](https://discuss.elastic.co/t/pipelines-yml-and-best-practices-using-this-approach-auto-config-reload/175824/6 "2019-05-07T13:32:51Z")

</div>

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