# Can filebeat read the log file that under like ’yyyy/mm/dd‘ dynamic folder？

**URL:** https://discuss.elastic.co/t/can-filebeat-read-the-log-file-that-under-like-yyyy-mm-dd-dynamic-folder/234232
**Category:** Beats
**Tags:** filebeat
**Created:** [May 26, 2020, 3:37am UTC](https://discuss.elastic.co/t/can-filebeat-read-the-log-file-that-under-like-yyyy-mm-dd-dynamic-folder/234232 "2020-05-26T03:37:06Z")
**Posts on this page:** 6
**Page:** 1

<div class="post-metadata">

### Author: ![strong-ge](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/strong-ge/32/69612_2.png) [@strong-ge](https://discuss.elastic.co/u/strong-ge)
#### Post date: [May 26, 2020, 3:37am UTC](https://discuss.elastic.co/t/can-filebeat-read-the-log-file-that-under-like-yyyy-mm-dd-dynamic-folder/234232/1 "2020-05-26T03:37:06Z")

</div>

can filebeat read the log file that under like ’yyyy/mm/dd‘ dynamic folder？

---

<div class="post-metadata">

### Author: ![warkolm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/warkolm/32/39224_2.png) [@warkolm](https://discuss.elastic.co/u/warkolm)
#### Post date: [May 26, 2020, 3:49am UTC](https://discuss.elastic.co/t/can-filebeat-read-the-log-file-that-under-like-yyyy-mm-dd-dynamic-folder/234232/2 "2020-05-26T03:49:37Z")

</div>

Welcome! 😃

Yes, you can use path globbing to handle that - [https://www.elastic.co/guide/en/beats/filebeat/current/filebeat-input-log.html#input-paths](https://www.elastic.co/guide/en/beats/filebeat/current/filebeat-input-log.html#input-paths)

---

<div class="post-metadata">

### Author: ![strong-ge](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/strong-ge/32/69612_2.png) [@strong-ge](https://discuss.elastic.co/u/strong-ge)
#### Post date: [May 26, 2020, 4:51am UTC](https://discuss.elastic.co/t/can-filebeat-read-the-log-file-that-under-like-yyyy-mm-dd-dynamic-folder/234232/3 "2020-05-26T04:51:19Z")

</div>

Thank you for your reply！but I don't want to match folder like '/a/b/c', only match data format folder ，what to do about it? Thanks again for your reply。

---

<div class="post-metadata">

### Author: ![warkolm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/warkolm/32/39224_2.png) [@warkolm](https://discuss.elastic.co/u/warkolm)
#### Post date: [May 26, 2020, 4:54am UTC](https://discuss.elastic.co/t/can-filebeat-read-the-log-file-that-under-like-yyyy-mm-dd-dynamic-folder/234232/4 "2020-05-26T04:54:30Z")

</div>

What if you used `20*/*/*`, so it'd match `2020` etc?

---

<div class="post-metadata">

### Author: ![strong-ge](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/strong-ge/32/69612_2.png) [@strong-ge](https://discuss.elastic.co/u/strong-ge)
#### Post date: [May 26, 2020, 5:56am UTC](https://discuss.elastic.co/t/can-filebeat-read-the-log-file-that-under-like-yyyy-mm-dd-dynamic-folder/234232/5 "2020-05-26T05:56:14Z")

</div>

That's okay！thx.

---

<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: [June 23, 2020, 5:56am UTC](https://discuss.elastic.co/t/can-filebeat-read-the-log-file-that-under-like-yyyy-mm-dd-dynamic-folder/234232/6 "2020-06-23T05:56:24Z")

</div>

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