# Running Logstash FILE config files "once"

**URL:** <https://discuss.elastic.co/t/running-logstash-file-config-files-once/204269>\
**Category:** Logstash\
**Created:** [October 18, 2019, 7:04pm UTC](https://discuss.elastic.co/t/running-logstash-file-config-files-once/204269 "2019-10-18T19:04:41Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![edster](https://avatars.discourse-cdn.com/v4/letter/e/da6949/32.png) [@edster](https://discuss.elastic.co/u/edster)\
**Post date:** [October 18, 2019, 7:04pm UTC](https://discuss.elastic.co/t/running-logstash-file-config-files-once/204269/1 "2019-10-18T19:04:41Z")

</div>

Hello,

How can I run a logstash config ingesting a csv or xml or file so that it is not continually running? The logstash config file can keep running until it is manually shut down, however, how can I have it run once so that another logstash config file can run?

---

<div class="post-metadata">

**Author:** ![AquaX](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/aquax/32/92006_2.png) [@AquaX](https://discuss.elastic.co/u/AquaX)\
**Post date:** [October 23, 2019, 8:54pm UTC](https://discuss.elastic.co/t/running-logstash-file-config-files-once/204269/2 "2019-10-23T20:54:01Z")

</div>

No. Not unless you use the "read" functionality of the file input with the "log\_and\_delete" option or the "delete" option and then have another script running that starts logstash if it find a new file in the folder and then stops logstash when there are no more files (after logstash deletes 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:** [November 20, 2019, 8:54pm UTC](https://discuss.elastic.co/t/running-logstash-file-config-files-once/204269/3 "2019-11-20T20:54:06Z")

</div>

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