# How to conf filebeat input path use date such as (/var/log/${+yyyyMMDD})

**URL:** <https://discuss.elastic.co/t/how-to-conf-filebeat-input-path-use-date-such-as-var-log-yyyymmdd/119342>\
**Category:** Beats\
**Tags:** filebeat\
**Created:** [February 10, 2018, 2:59pm UTC](https://discuss.elastic.co/t/how-to-conf-filebeat-input-path-use-date-such-as-var-log-yyyymmdd/119342 "2018-02-10T14:59:48Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![wede2046](https://avatars.discourse-cdn.com/v4/letter/w/ea666f/32.png) [@wede2046](https://discuss.elastic.co/u/wede2046)\
**Post date:** [February 10, 2018, 2:59pm UTC](https://discuss.elastic.co/t/how-to-conf-filebeat-input-path-use-date-such-as-var-log-yyyymmdd/119342/1 "2018-02-10T14:59:48Z")

</div>

how to conf filebeat input path use date such as (/var/log/${+yyyyMMDD})?

filebeat.prospectors:

- type: log  
paths:
  - /var/log/${+yyyyMMDD}

is filebeat support this file path?

---

<div class="post-metadata">

**Author:** ![tudor](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/tudor/32/3753_2.png) [@tudor](https://discuss.elastic.co/u/tudor)\
**Post date:** [February 12, 2018, 10:40am UTC](https://discuss.elastic.co/t/how-to-conf-filebeat-input-path-use-date-such-as-var-log-yyyymmdd/119342/2 "2018-02-12T10:40:33Z")

</div>

The paths array supports file [Glob](https://golang.org/pkg/path/filepath/#Glob) patterns, so you can do something like `/var/log/*`. If you need, you can combine it with the `include_files` option which can applies a list of regexps over the glob to further filter 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:** [March 12, 2018, 10:40am UTC](https://discuss.elastic.co/t/how-to-conf-filebeat-input-path-use-date-such-as-var-log-yyyymmdd/119342/3 "2018-03-12T10:40:33Z")

</div>

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