# Glob based paths in Filebeat

**URL:** <https://discuss.elastic.co/t/glob-based-paths-in-filebeat/250906>\
**Category:** Beats\
**Tags:** filebeat\
**Created:** [October 4, 2020, 6:10pm UTC](https://discuss.elastic.co/t/glob-based-paths-in-filebeat/250906 "2020-10-04T18:10:59Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![ajesh](https://avatars.discourse-cdn.com/v4/letter/a/ecd19e/32.png) [@ajesh](https://discuss.elastic.co/u/ajesh)\
**Post date:** [October 4, 2020, 6:10pm UTC](https://discuss.elastic.co/t/glob-based-paths-in-filebeat/250906/1 "2020-10-04T18:10:59Z")

</div>

Hi Team,

I am trying to find out an easy way to give the Glob based path in filebeat. Below is a sample path which we need to configure in filebeat.yml .

```
  - /oraadr/XHPROD/adump/*.aud
  - /projects/oraxhph2/orabase/admin/XH2PROD/adump/*.aud
  - /projects/orata/orabase/admin/TAPRD/adump/*.aud
  - /projects/oraxhca/app/admin/XHCAPRD/adump/*.aud
  - /project/oraeak/app/admin/EAKPROD/adump/*.aud

```

Folders in between `/projects/` and` /adump/` will be different for every server

Instead of giving the full path above , can we give some thing like below so that we dont have to configure the path on all 350+ servers

` /project/*/adump/*.aud`

Please help

---

<div class="post-metadata">

**Author:** ![kavierkoo](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/kavierkoo/32/86555_2.png) [@kavierkoo](https://discuss.elastic.co/u/kavierkoo)\
**Post date:** [October 5, 2020, 1:18am UTC](https://discuss.elastic.co/t/glob-based-paths-in-filebeat/250906/2 "2020-10-05T01:18:18Z")

</div>

Wildcard is supported in path.

> A list of glob-based paths that will be crawled and fetched. All patterns supported by [Go Glob](https://golang.org/pkg/path/filepath/#Glob) are also supported here. For example, to fetch all files from a predefined level of subdirectories, the following pattern can be used: `/var/log/*/*.log` . This fetches all `.log` files from the subfolders of `/var/log` .

> **[Log input | Filebeat Reference \[8.11\] | Elastic](https://www.elastic.co/guide/en/beats/filebeat/current/filebeat-input-log.html#input-paths)**

Hope this can help you!

---

<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 2, 2020, 3:18am UTC](https://discuss.elastic.co/t/glob-based-paths-in-filebeat/250906/3 "2020-11-02T03:18:25Z")

</div>

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