# How to Shutdown logstash once it read full file

**URL:** <https://discuss.elastic.co/t/how-to-shutdown-logstash-once-it-read-full-file/83166>\
**Category:** Logstash\
**Created:** [April 21, 2017, 8:19am UTC](https://discuss.elastic.co/t/how-to-shutdown-logstash-once-it-read-full-file/83166 "2017-04-21T08:19:02Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Dan](https://avatars.discourse-cdn.com/v4/letter/d/eada6e/32.png) [@Dan](https://discuss.elastic.co/u/Dan)\
**Post date:** [April 21, 2017, 8:19am UTC](https://discuss.elastic.co/t/how-to-shutdown-logstash-once-it-read-full-file/83166/1 "2017-04-21T08:19:02Z")

</div>

logstash continuously reading file after reading full data from my CSV.

I want to shutdown my logstash once it read full file and want to run another logstash.

How can i stop logstash automatically once it read full data.

or is there anyway to run multiple conf files one after another.

Thanks in advance...........

---

<div class="post-metadata">

**Author:** ![warkolm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/warkolm/32/39224_2.png) [@warkolm](https://discuss.elastic.co/u/warkolm)\
**Post date:** [April 21, 2017, 8:36am UTC](https://discuss.elastic.co/t/how-to-shutdown-logstash-once-it-read-full-file/83166/2 "2017-04-21T08:36:29Z")

</div>

You need to manually call LS with the path to the config file, there is nothing native that can do this.

---

<div class="post-metadata">

**Author:** ![guyboertje](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/guyboertje/32/31592_2.png) [@guyboertje](https://discuss.elastic.co/u/guyboertje)\
**Post date:** [April 21, 2017, 8:48am UTC](https://discuss.elastic.co/t/how-to-shutdown-logstash-once-it-read-full-file/83166/3 "2017-04-21T08:48:42Z")

</div>

It will help others on this forum to give you helpful suggestions if you explain what you have - data wise and what you want to achieve with it along with what you have tried already.

The answering kind of folk on this forum range from users with complex installations to Elastic Solution Architects to Elastic Software Engineers.

---

<div class="post-metadata">

**Author:** ![Dan](https://avatars.discourse-cdn.com/v4/letter/d/eada6e/32.png) [@Dan](https://discuss.elastic.co/u/Dan)\
**Post date:** [April 21, 2017, 9:36am UTC](https://discuss.elastic.co/t/how-to-shutdown-logstash-once-it-read-full-file/83166/4 "2017-04-21T09:36:11Z")

</div>

Thanks for your reply..

I want to stop logstash once it read full file.

Now it continuously reading file and checking for update.

---

<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 19, 2017, 9:49am UTC](https://discuss.elastic.co/t/how-to-shutdown-logstash-once-it-read-full-file/83166/5 "2017-05-19T09:49:40Z")

</div>

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