# Filebeat ignoring recursive globs

**URL:** <https://discuss.elastic.co/t/filebeat-ignoring-recursive-globs/165146>\
**Category:** Beats\
**Tags:** filebeat\
**Created:** [January 22, 2019, 4:07am UTC](https://discuss.elastic.co/t/filebeat-ignoring-recursive-globs/165146 "2019-01-22T04:07:35Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![SpeedyXeon](https://avatars.discourse-cdn.com/v4/letter/s/3da27b/32.png) [@SpeedyXeon](https://discuss.elastic.co/u/SpeedyXeon)\
**Post date:** [January 22, 2019, 4:07am UTC](https://discuss.elastic.co/t/filebeat-ignoring-recursive-globs/165146/1 "2019-01-22T04:07:35Z")

</div>

Hi,

I configured my prospector to use recursive globs, but filebeat is ignoring the configuration and exiting with the error below:

> Error in initing prospector: Failed to resolve recursive globs in config: multiple \*\* in "/etc/Jenkins/Home/jobs/\*\* /builds/\*\*/build.xml"

Here is my config snippet for reference.

```
filebeat.prospectors:
- 
  enabled: true
  type: log
  fields:
    environment: dev
  paths:
    - /etc/Jenkins/Home/jobs/ **/builds/** /build.xml
    - /etc/Jenkins/Home/jobs/ **/jobs/** /builds/**/build.xml
  recursive_glob.enabled: true
  multiline.pattern: '.'
  multiline.match: after

```

---

<div class="post-metadata">

**Author:** ![Magnus\_Kessler](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/magnus_kessler/32/42001_2.png) [@Magnus\_Kessler](https://discuss.elastic.co/u/Magnus_Kessler)\
**Post date:** [January 22, 2019, 12:02pm UTC](https://discuss.elastic.co/t/filebeat-ignoring-recursive-globs/165146/2 "2019-01-22T12:02:07Z")

</div>

AFAICT from the [documentation](https://www.elastic.co/guide/en/beats/filebeat/current/configuration-ssl.html#_literal_cipher_suites_literal), only a single recursive glob pattern per entry is allowed.

> Enable expanding ` **` into recursive glob patterns. With this feature enabled, the rightmost `** ` in each path is expanded into a fixed number of glob patterns. For example: `/foo/ **` expands to `/foo` , `/foo/*` , `/foo/*/*` , and so on. If enabled it expands a single `** ` into a 8-level deep `*` pattern.

Are the directories nested more than 8 levels deep from the leftmost recursive glob?

---

<div class="post-metadata">

**Author:** ![SpeedyXeon](https://avatars.discourse-cdn.com/v4/letter/s/3da27b/32.png) [@SpeedyXeon](https://discuss.elastic.co/u/SpeedyXeon)\
**Post date:** [January 23, 2019, 5:12am UTC](https://discuss.elastic.co/t/filebeat-ignoring-recursive-globs/165146/3 "2019-01-23T05:12:22Z")

</div>

I misinterpreted how to use recursive glob patterns and a single wildcard is all that I needed.

I do want to mention, I based my initial question on a previously configured filebeat setup that used multiple recursive glob patterns in a single path. Surprisingly, it works the exact same as my current configuration.

Initial Reference: RHEL6 Filebeat v5.6  
Version currently using: MacOS Filebeat v6.5

Thanks for the help. You can close this topic.

---

<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:** [February 20, 2019, 5:12am UTC](https://discuss.elastic.co/t/filebeat-ignoring-recursive-globs/165146/4 "2019-02-20T05:12:24Z")

</div>

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