# How logstash comes out after processing log files?

**URL:** <https://discuss.elastic.co/t/how-logstash-comes-out-after-processing-log-files/29689>\
**Category:** Logstash\
**Created:** [September 21, 2015, 9:55am UTC](https://discuss.elastic.co/t/how-logstash-comes-out-after-processing-log-files/29689 "2015-09-21T09:55:58Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Saket\_Kumar](https://avatars.discourse-cdn.com/v4/letter/s/c57346/32.png) [@Saket\_Kumar](https://discuss.elastic.co/u/Saket_Kumar)\
**Post date:** [September 21, 2015, 9:55am UTC](https://discuss.elastic.co/t/how-logstash-comes-out-after-processing-log-files/29689/1 "2015-09-21T09:55:58Z")

</div>

How logstash comes back to command prompt after processing all the log files( Cntrl + C )? I have to process log once its not going to increase once processed. How would i know that the processing of file is completed and automatically close the command prompt.?

---

<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:** [September 21, 2015, 10:05am UTC](https://discuss.elastic.co/t/how-logstash-comes-out-after-processing-log-files/29689/2 "2015-09-21T10:05:28Z")

</div>

If you are using a file input it will just expect that you want to keep watching the file for new entries.

Look at using `stdin` with `cat` on Linux or `type` on Windows.

---

<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:** [July 6, 2017, 5:28am UTC](https://discuss.elastic.co/t/how-logstash-comes-out-after-processing-log-files/29689/3 "2017-07-06T05:28:33Z")

</div>

Closed on July 6, 2017, 5:28am UTC


