# Filebeat read new file daily

**URL:** <https://discuss.elastic.co/t/filebeat-read-new-file-daily/231288>\
**Category:** Beats\
**Tags:** filebeat\
**Created:** [May 6, 2020, 7:59am UTC](https://discuss.elastic.co/t/filebeat-read-new-file-daily/231288 "2020-05-06T07:59:06Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![lioaslan](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/lioaslan/32/67806_2.png) [@lioaslan](https://discuss.elastic.co/u/lioaslan)\
**Post date:** [May 6, 2020, 7:59am UTC](https://discuss.elastic.co/t/filebeat-read-new-file-daily/231288/1 "2020-05-06T07:59:06Z")

</div>

Hi,  
I'm new to ELK Stack. I have a task build a analysis log, input is .log file. I try to read the guide but I can't find out how to make Filebeat read file everyday. My file will be remove and create again at 0 am.  
Thanks for any helps and sorry for my poor English.

---

<div class="post-metadata">

**Author:** ![ChrsMark](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/chrsmark/32/55858_2.png) [@ChrsMark](https://discuss.elastic.co/u/ChrsMark)\
**Post date:** [May 6, 2020, 8:08am UTC](https://discuss.elastic.co/t/filebeat-read-new-file-daily/231288/2 "2020-05-06T08:08:10Z")

</div>

Hi @lioaslan!

Did you try to configure Filebeat to read from your file? See [https://www.elastic.co/guide/en/beats/filebeat/current/filebeat-input-log.html#filebeat-input-log](https://www.elastic.co/guide/en/beats/filebeat/current/filebeat-input-log.html#filebeat-input-log)  
I'm not sure if you can make it parse the file once per day, since Filebeat constantly collects logs from target log files, so if the file no longer has more log lines then Filebeat will just stop reading from it.

---

<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:** [June 3, 2020, 8:08am UTC](https://discuss.elastic.co/t/filebeat-read-new-file-daily/231288/3 "2020-06-03T08:08:12Z")

</div>

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