# How to set path in Filebeat.yml

**URL:** <https://discuss.elastic.co/t/how-to-set-path-in-filebeat-yml/138510>\
**Category:** Beats\
**Tags:** filebeat\
**Created:** [July 4, 2018, 8:13am UTC](https://discuss.elastic.co/t/how-to-set-path-in-filebeat-yml/138510 "2018-07-04T08:13:19Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![xiaosong](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/xiaosong/32/32947_2.png) [@xiaosong](https://discuss.elastic.co/u/xiaosong)\
**Post date:** [July 4, 2018, 8:13am UTC](https://discuss.elastic.co/t/how-to-set-path-in-filebeat-yml/138510/1 "2018-07-04T08:13:19Z")

</div>

All log file like xxxx20180702.log. How to choose today's log file only. Is there any config like this：xxxx{now/d}.log

---

<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:** [July 4, 2018, 10:41am UTC](https://discuss.elastic.co/t/how-to-set-path-in-filebeat-yml/138510/2 "2018-07-04T10:41:34Z")

</div>

Hi @xiaosong and welcome 🙂

What are you trying to achieve?

Filebeat keeps a registry with the files it has already read, so in principle old files won't be read twice or anything like this.

---

<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 1, 2018, 10:41am UTC](https://discuss.elastic.co/t/how-to-set-path-in-filebeat-yml/138510/3 "2018-08-01T10:41:34Z")

</div>

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