# Filebeat auto stop without kill

**URL:** <https://discuss.elastic.co/t/filebeat-auto-stop-without-kill/106133>\
**Category:** Beats\
**Tags:** filebeat\
**Created:** [November 2, 2017, 7:18am UTC](https://discuss.elastic.co/t/filebeat-auto-stop-without-kill/106133 "2017-11-02T07:18:56Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Jay\_Dabhi](https://avatars.discourse-cdn.com/v4/letter/j/8c91f0/32.png) [@Jay\_Dabhi](https://discuss.elastic.co/u/Jay_Dabhi)\
**Post date:** [November 2, 2017, 7:18am UTC](https://discuss.elastic.co/t/filebeat-auto-stop-without-kill/106133/1 "2017-11-02T07:18:56Z")

</div>

Hi,

I have observed that filebeat runs forever after ingestion of all logs.  
Is there any way through which filebeat will auto stop after the all logs are ingested?

---

<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:** [November 2, 2017, 8:04am UTC](https://discuss.elastic.co/t/filebeat-auto-stop-without-kill/106133/2 "2017-11-02T08:04:54Z")

</div>

If you only want to process a set of logs and then quit after entry, you will need to use cat + [stdin](https://www.elastic.co/guide/en/beats/filebeat/current/configuration-filebeat-options.html#_input_type).

There's currently no way to have it quit on finish as it assumes you will always have more data.

---

<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 30, 2017, 8:05am UTC](https://discuss.elastic.co/t/filebeat-auto-stop-without-kill/106133/3 "2017-11-30T08:05:16Z")

</div>

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