# Filebeat log path

**URL:** <https://discuss.elastic.co/t/filebeat-log-path/153796>\
**Category:** Beats\
**Created:** [October 24, 2018, 12:34pm UTC](https://discuss.elastic.co/t/filebeat-log-path/153796 "2018-10-24T12:34:35Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![motamedi791](https://avatars.discourse-cdn.com/v4/letter/m/5e9695/32.png) [@motamedi791](https://discuss.elastic.co/u/motamedi791)\
**Post date:** [October 24, 2018, 12:34pm UTC](https://discuss.elastic.co/t/filebeat-log-path/153796/1 "2018-10-24T12:34:36Z")

</div>

My logs are in multiple nested directories as like:

```
/var/log/dir1/dir2/file.log
/var/log/dir3/dir4/dir5//file.log

```

...

It there is way to define a dir-based wildcard path in my `filebeat.yml` as:

/var/log/\*\*/\*.log

So that regardless of the number of directory levels all files in the /var/log folder are ingested by `filebeat`.

---

<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:** [November 21, 2018, 2:36pm UTC](https://discuss.elastic.co/t/filebeat-log-path/153796/2 "2018-11-21T14:36:21Z")

</div>

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