# Running Filebeat on a weekly basis

**URL:** <https://discuss.elastic.co/t/running-filebeat-on-a-weekly-basis/191797>\
**Category:** Beats\
**Tags:** filebeat\
**Created:** [July 23, 2019, 11:09am UTC](https://discuss.elastic.co/t/running-filebeat-on-a-weekly-basis/191797 "2019-07-23T11:09:52Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Senthil\_Kumaran](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/senthil_kumaran/32/46287_2.png) [@Senthil\_Kumaran](https://discuss.elastic.co/u/Senthil_Kumaran)\
**Post date:** [July 23, 2019, 11:09am UTC](https://discuss.elastic.co/t/running-filebeat-on-a-weekly-basis/191797/1 "2019-07-23T11:09:52Z")

</div>

I have a requirement , where i have to run filebeat on a weekly basis , once a harvesting is done on a specified time frame i want the particular file to be harvested after a week , so any changes to be done in filebeat.yml ??

---

<div class="post-metadata">

**Author:** ![pierhugues](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/pierhugues/32/48383_2.png) [@pierhugues](https://discuss.elastic.co/u/pierhugues)\
**Post date:** [July 25, 2019, 6:16pm UTC](https://discuss.elastic.co/t/running-filebeat-on-a-weekly-basis/191797/2 "2019-07-25T18:16:45Z")

</div>

Hello,

from your description I think you are looking for some **scheduled** harvesting. that feature its not something that we currently offer in filebeat. You might have to roll you own, maybe with a crontab.

Also, what is the reason to only want to read the files once every week?

---

<div class="post-metadata">

**Author:** ![Senthil\_Kumaran](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/senthil_kumaran/32/46287_2.png) [@Senthil\_Kumaran](https://discuss.elastic.co/u/Senthil_Kumaran)\
**Post date:** [July 26, 2019, 5:30am UTC](https://discuss.elastic.co/t/running-filebeat-on-a-weekly-basis/191797/3 "2019-07-26T05:30:07Z")

</div>

Reason is I want to send a csv file to elasticsearch on a weekly basis , i.e on a same csv file data will be updated on a particular day in a week.This needs to be done recurvisely

---

<div class="post-metadata">

**Author:** ![pierhugues](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/pierhugues/32/48383_2.png) [@pierhugues](https://discuss.elastic.co/u/pierhugues)\
**Post date:** [July 26, 2019, 12:47pm UTC](https://discuss.elastic.co/t/running-filebeat-on-a-weekly-basis/191797/4 "2019-07-26T12:47:25Z")

</div>

I don't think you to schedule the beats, if you make the beats watch a file or a directory, It should pickup the changes when they are done and the rest of the time it wont do anything.

---

<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:** [August 23, 2019, 12:47pm UTC](https://discuss.elastic.co/t/running-filebeat-on-a-weekly-basis/191797/5 "2019-08-23T12:47:40Z")

</div>

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