# Is it possible to prevent logstash to start until a config file is available?

**URL:** <https://discuss.elastic.co/t/is-it-possible-to-prevent-logstash-to-start-until-a-config-file-is-available/98026>\
**Category:** Logstash\
**Created:** [August 23, 2017, 8:22am UTC](https://discuss.elastic.co/t/is-it-possible-to-prevent-logstash-to-start-until-a-config-file-is-available/98026 "2017-08-23T08:22:08Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![remziay](https://avatars.discourse-cdn.com/v4/letter/r/e47774/32.png) [@remziay](https://discuss.elastic.co/u/remziay)\
**Post date:** [August 23, 2017, 8:22am UTC](https://discuss.elastic.co/t/is-it-possible-to-prevent-logstash-to-start-until-a-config-file-is-available/98026/1 "2017-08-23T08:22:08Z")

</div>

Hello , my logstash is being started by a process with **config.reload.automatic** option. i.e ./logstash -f $PATH\_TO\_CONFIG\_FILES --config.reload.automatic

I have many configuration files and they are being generated at runtime by different processes and these config files are being copied to $PATH\_TO\_CONFIG\_FILES.

when logstash starts if there is no config file under $PATH\_TO\_CONFIG\_FILES it stops with following message : **failed to fetch pipeline configuration {:message=\>"No config files found: ....**

is it possible to make logstash wait until a config file is available?  
or is it possible to give a retry count for starting logstash?

---

<div class="post-metadata">

**Author:** ![theuntergeek](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/theuntergeek/32/44961_2.png) [@theuntergeek](https://discuss.elastic.co/u/theuntergeek)\
**Post date:** [August 23, 2017, 1:07pm UTC](https://discuss.elastic.co/t/is-it-possible-to-prevent-logstash-to-start-until-a-config-file-is-available/98026/2 "2017-08-23T13:07:25Z")

</div>

No, it is not possible.

---

<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:** [September 20, 2017, 1:07pm UTC](https://discuss.elastic.co/t/is-it-possible-to-prevent-logstash-to-start-until-a-config-file-is-available/98026/3 "2017-09-20T13:07:39Z")

</div>

Closed on September 20, 2017, 1:07pm UTC

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