# Stop Filebeat automatically after it uploaded all log files

**URL:** <https://discuss.elastic.co/t/stop-filebeat-automatically-after-it-uploaded-all-log-files/283473>\
**Category:** Beats\
**Tags:** filebeat\
**Created:** [September 6, 2021, 6:09pm UTC](https://discuss.elastic.co/t/stop-filebeat-automatically-after-it-uploaded-all-log-files/283473 "2021-09-06T18:09:18Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![vladik22](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/vladik22/32/78720_2.png) [@vladik22](https://discuss.elastic.co/u/vladik22)\
**Post date:** [September 6, 2021, 6:09pm UTC](https://discuss.elastic.co/t/stop-filebeat-automatically-after-it-uploaded-all-log-files/283473/1 "2021-09-06T18:09:18Z")

</div>

There is an option to configure Filebeat to stop automatically after it uploaded all log files?  
Before every uploading log file I should to modify them.

---

<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 6, 2021, 11:38pm UTC](https://discuss.elastic.co/t/stop-filebeat-automatically-after-it-uploaded-all-log-files/283473/2 "2021-09-06T23:38:09Z")

</div>

No there's not because Filebeat assumes it needs to be running to scan files continually.

You can use the `stdin` input and cat the files into the process if you want to do a single run.

---

<div class="post-metadata">

**Author:** ![vladik22](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/vladik22/32/78720_2.png) [@vladik22](https://discuss.elastic.co/u/vladik22)\
**Post date:** [September 9, 2021, 4:32am UTC](https://discuss.elastic.co/t/stop-filebeat-automatically-after-it-uploaded-all-log-files/283473/3 "2021-09-09T04:32:22Z")

</div>

Okay. Thank you

---

<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:** [October 7, 2021, 6:33am UTC](https://discuss.elastic.co/t/stop-filebeat-automatically-after-it-uploaded-all-log-files/283473/4 "2021-10-07T06:33:17Z")

</div>

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