# File beat on a path whose name varies (current date)

**URL:** <https://discuss.elastic.co/t/file-beat-on-a-path-whose-name-varies-current-date/223867>\
**Category:** Beats\
**Tags:** filebeat\
**Created:** [March 17, 2020, 8:01am UTC](https://discuss.elastic.co/t/file-beat-on-a-path-whose-name-varies-current-date/223867 "2020-03-17T08:01:10Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Youssef\_SBAI](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/youssef_sbai/32/64242_2.png) [@Youssef\_SBAI](https://discuss.elastic.co/u/Youssef_SBAI)\
**Post date:** [March 17, 2020, 8:01am UTC](https://discuss.elastic.co/t/file-beat-on-a-path-whose-name-varies-current-date/223867/1 "2020-03-17T08:01:11Z")

</div>

Hello,

Is it possible to configure a file beat on a path whose name varies (current date)?

```
 paths:

  /opt/zimbra/log/access_log.2020-03-12

```

I think so but not found how to do it: 🙂

Regards,

---

<div class="post-metadata">

**Author:** ![kvch](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/kvch/32/72058_2.png) [@kvch](https://discuss.elastic.co/u/kvch)\
**Post date:** [March 17, 2020, 6:52pm UTC](https://discuss.elastic.co/t/file-beat-on-a-path-whose-name-varies-current-date/223867/2 "2020-03-17T18:52:57Z")

</div>

The option `paths` support globbing. So you can modify the path to `/opt/zimbra/log/access_log.*` in order to read all access logs.

---

<div class="post-metadata">

**Author:** ![Youssef\_SBAI](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/youssef_sbai/32/64242_2.png) [@Youssef\_SBAI](https://discuss.elastic.co/u/Youssef_SBAI)\
**Post date:** [March 17, 2020, 7:14pm UTC](https://discuss.elastic.co/t/file-beat-on-a-path-whose-name-varies-current-date/223867/3 "2020-03-17T19:14:17Z")

</div>

I have other date yyyy-MM-dd i just parse the date 2020-03-12

---

<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:** [April 14, 2020, 7:14pm UTC](https://discuss.elastic.co/t/file-beat-on-a-path-whose-name-varies-current-date/223867/4 "2020-04-14T19:14:32Z")

</div>

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