# How to set filebeat to look into folder with current date.?

**URL:** <https://discuss.elastic.co/t/how-to-set-filebeat-to-look-into-folder-with-current-date/46076>\
**Category:** Beats\
**Tags:** filebeat\
**Created:** [April 1, 2016, 3:25pm UTC](https://discuss.elastic.co/t/how-to-set-filebeat-to-look-into-folder-with-current-date/46076 "2016-04-01T15:25:30Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![sdaruna](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/sdaruna/32/7289_2.png) [@sdaruna](https://discuss.elastic.co/u/sdaruna)\
**Post date:** [April 1, 2016, 3:25pm UTC](https://discuss.elastic.co/t/how-to-set-filebeat-to-look-into-folder-with-current-date/46076/1 "2016-04-01T15:25:30Z")

</div>

I want to configure filebeat to look into folders with current date.

Base Path: /user/srini/inputs/  
For Eg:

if current date is 01-01-2016, then it has to get files from below path.

/user/srini/inputs/01-01-2016/\*.log

If current date is 02-02-2016, then it has to get files from below path.

/user/srini/inputs/02-02-2016/\*.log.

Precisely, i want to set the filebeat to look for today's folder. How can i do that.?

---

<div class="post-metadata">

**Author:** ![magnusbaeck](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/magnusbaeck/32/44943_2.png) [@magnusbaeck](https://discuss.elastic.co/u/magnusbaeck)\
**Post date:** [April 2, 2016, 6:52pm UTC](https://discuss.elastic.co/t/how-to-set-filebeat-to-look-into-folder-with-current-date/46076/2 "2016-04-02T18:52:20Z")

</div>

You can't. But you know that you can use wildcards for the directory part of the path too, right?

/user/srini/inputs/_/_.log

---

<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:** [July 5, 2017, 9:53pm UTC](https://discuss.elastic.co/t/how-to-set-filebeat-to-look-into-folder-with-current-date/46076/3 "2017-07-05T21:53:55Z")

</div>


