# Filebeat config prospectors paths with pattern

**URL:** <https://discuss.elastic.co/t/filebeat-config-prospectors-paths-with-pattern/194645>\
**Category:** Beats\
**Tags:** filebeat\
**Created:** [August 9, 2019, 3:54pm UTC](https://discuss.elastic.co/t/filebeat-config-prospectors-paths-with-pattern/194645 "2019-08-09T15:54:32Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![jabravoa](https://avatars.discourse-cdn.com/v4/letter/j/d9b06d/32.png) [@jabravoa](https://discuss.elastic.co/u/jabravoa)\
**Post date:** [August 9, 2019, 3:54pm UTC](https://discuss.elastic.co/t/filebeat-config-prospectors-paths-with-pattern/194645/1 "2019-08-09T15:54:32Z")

</div>

Hello.

I want to configure my filebeat prospectors paths with a pattern. My directory that contains the log file is like /scripts/09082019/file.log and this one generates every day changing just the date pattern ddMMYYYY. So I want to configure this way to read just the log file from the current day. Just look at my code:

filebeat.prospectors:

- type: log  
enabled: true  
paths:
  - /var/scripts/%{+yyyy.MM.dd}/\*.log

But it does not work. Is there a way to make it possible?

Thank you.

Regards,

---

<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:** [September 6, 2019, 3:54pm UTC](https://discuss.elastic.co/t/filebeat-config-prospectors-paths-with-pattern/194645/2 "2019-09-06T15:54:35Z")

</div>

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