# Filebeat not picking files from path

**URL:** <https://discuss.elastic.co/t/filebeat-not-picking-files-from-path/59010>\
**Category:** Beats\
**Tags:** filebeat\
**Created:** [August 26, 2016, 7:06am UTC](https://discuss.elastic.co/t/filebeat-not-picking-files-from-path/59010 "2016-08-26T07:06:57Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Ganesh2303](https://avatars.discourse-cdn.com/v4/letter/g/57b2e6/32.png) [@Ganesh2303](https://discuss.elastic.co/u/Ganesh2303)\
**Post date:** [August 26, 2016, 7:06am UTC](https://discuss.elastic.co/t/filebeat-not-picking-files-from-path/59010/1 "2016-08-26T07:06:57Z")

</div>

HI Team,  
I'm picking my logs using filebeat when i hardcode my path beats pick it properly without any trouble instead of that if i define the path with regular expression it fail to pick the file and keep on posting start next scan message in screen. Can anyone help me on this

- 

```
 paths:
   - /XX/XX/XX/XX/XX/DDI/20[0-9][0-9][0-9][0-9][0-9][0-9]/[0-9][0-9][0-9][0-9][0-9]/XXX/*_Request.txt
 document_type: XX
 ignore_older: 96h
 close_older: 5m
 multiline:
  pattern: '<\/.*:XX>'
  negate: true
  match: before
```

---

<div class="post-metadata">

**Author:** ![steffens](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/steffens/32/79630_2.png) [@steffens](https://discuss.elastic.co/u/steffens)\
**Post date:** [August 28, 2016, 2:16pm UTC](https://discuss.elastic.co/t/filebeat-not-picking-files-from-path/59010/2 "2016-08-28T14:16:05Z")

</div>

filebeat `paths` config does not support regular expressions. It requires you to use a `glob` pattern. Unfortunately recursive glob pattern (often `**`) is not supported yet. In case you know the directory depths you can try to use something like `

`

- /XX/XX/XX/XX/XX/DDI/20\*/_/XXX/_\_Request.txt  
`

---

<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 16, 2016, 7:07am UTC](https://discuss.elastic.co/t/filebeat-not-picking-files-from-path/59010/3 "2016-09-16T07:07:12Z")

</div>

This topic was automatically closed after 21 days. New replies are no longer allowed.
