# How to set auto-reloading conf files in logstash.yml or pipeline.yml

**URL:** <https://discuss.elastic.co/t/how-to-set-auto-reloading-conf-files-in-logstash-yml-or-pipeline-yml/327425>\
**Category:** Logstash\
**Created:** [March 10, 2023, 9:00am UTC](https://discuss.elastic.co/t/how-to-set-auto-reloading-conf-files-in-logstash-yml-or-pipeline-yml/327425 "2023-03-10T09:00:02Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![terrymu](https://avatars.discourse-cdn.com/v4/letter/t/ea666f/32.png) [@terrymu](https://discuss.elastic.co/u/terrymu)\
**Post date:** [March 10, 2023, 9:00am UTC](https://discuss.elastic.co/t/how-to-set-auto-reloading-conf-files-in-logstash-yml-or-pipeline-yml/327425/1 "2023-03-10T09:00:02Z")

</div>

Hi All,  
I know here is a feature that can auto-reloading conf files without logstash restart action.

 ![image](https://us1.discourse-cdn.com/elastic/original/3X/d/5/d55086fc44bd165292a6ecae1da183ab1104a40c.png)  
So my question is easy, how to turn on auto-reloading function in logstash.yml or pipeline.yml ?  
I need an working example of format, thanks.

> #pipeline.yml  
> pipeline.id: pipeline19  
> config.reload.automatic: true  
> config.reload.interval: 10s  
> path.config: "/etc/logstash/pipeline/pattern1.conf"  
> queue.type: persisted

---

<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:** [March 10, 2023, 5:21pm UTC](https://discuss.elastic.co/t/how-to-set-auto-reloading-conf-files-in-logstash-yml-or-pipeline-yml/327425/2 "2023-03-10T17:21:49Z")

</div>

You can set it to true in [logstash.yml](https://github.com/elastic/logstash/blob/a126364102fca5abe58d1031ab6ef6f1408fead0/config/logstash.yml#L100).

---

<div class="post-metadata">

**Author:** ![terrymu](https://avatars.discourse-cdn.com/v4/letter/t/ea666f/32.png) [@terrymu](https://discuss.elastic.co/u/terrymu)\
**Post date:** [March 14, 2023, 9:39am UTC](https://discuss.elastic.co/t/how-to-set-auto-reloading-conf-files-in-logstash-yml-or-pipeline-yml/327425/3 "2023-03-14T09:39:51Z")

</div>

> [@terrymu](#):
>
> config.reload.automatic: true  
> config.reload.interval: 10s

Thanks a lot Badger, i remember you have answered my other questions in last two years.  
I have set it in pipeline.yml, it worked well, so looks like both logstash.yml and pipeline.yml are OK.

---

<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 11, 2023, 9:40am UTC](https://discuss.elastic.co/t/how-to-set-auto-reloading-conf-files-in-logstash-yml-or-pipeline-yml/327425/4 "2023-04-11T09:40:41Z")

</div>

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