# Can a scheduler be setup for filebeat to push logs only at midnight

**URL:** <https://discuss.elastic.co/t/can-a-scheduler-be-setup-for-filebeat-to-push-logs-only-at-midnight/128286>\
**Category:** Beats\
**Tags:** filebeat\
**Created:** [April 17, 2018, 5:47am UTC](https://discuss.elastic.co/t/can-a-scheduler-be-setup-for-filebeat-to-push-logs-only-at-midnight/128286 "2018-04-17T05:47:24Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Kamal\_Raj](https://avatars.discourse-cdn.com/v4/letter/k/a5b964/32.png) [@Kamal\_Raj](https://discuss.elastic.co/u/Kamal_Raj)\
**Post date:** [April 17, 2018, 5:47am UTC](https://discuss.elastic.co/t/can-a-scheduler-be-setup-for-filebeat-to-push-logs-only-at-midnight/128286/1 "2018-04-17T05:47:24Z")

</div>

Wanted to try ES on one of our servers, where the load/CPU utilization is already high. Hence, can I schedule Filebeat to push logs only at midnight

I am aware that **scan\_frequency:86400** setting in Filebeat config, will push in an interval of 24 hours. But is there a provision, to mention time, i.e 12 midnight

@steffens, Could you please help

---

<div class="post-metadata">

**Author:** ![Kamal\_Raj](https://avatars.discourse-cdn.com/v4/letter/k/a5b964/32.png) [@Kamal\_Raj](https://discuss.elastic.co/u/Kamal_Raj)\
**Post date:** [April 17, 2018, 10:02am UTC](https://discuss.elastic.co/t/can-a-scheduler-be-setup-for-filebeat-to-push-logs-only-at-midnight/128286/2 "2018-04-17T10:02:04Z")

</div>

Hi Team  
Could anyone please help me on this. Im really stuck

---

<div class="post-metadata">

**Author:** ![jsoriano](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/jsoriano/32/27920_2.png) [@jsoriano](https://discuss.elastic.co/u/jsoriano)\
**Post date:** [April 17, 2018, 11:19am UTC](https://discuss.elastic.co/t/can-a-scheduler-be-setup-for-filebeat-to-push-logs-only-at-midnight/128286/3 "2018-04-17T11:19:07Z")

</div>

Hi @Kamal_Raj,

`filebeat` and log pushing shouldn't cause a big overhead and in general it is a good idea to send the logs to a centralized server as soon as possible.

If in any case you need to schedule log forwarding at an specific time, in principle`filebeat` doesn't provide a solution for that, but one thing you can try is to use cron for scheduling `filebeat run --once` at midnight. The `--once` flag makes `filebeat` to run only until all pending log files have been read. Take into account that processing a whole day of logs at once can also provoke a big peak in load depending on the volume of logs your application generates.

---

<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 15, 2018, 11:25am UTC](https://discuss.elastic.co/t/can-a-scheduler-be-setup-for-filebeat-to-push-logs-only-at-midnight/128286/4 "2018-05-15T11:25:29Z")

</div>

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