# Not skipping the folders and files sending from filebeat to elaticsearch

**URL:** <https://discuss.elastic.co/t/not-skipping-the-folders-and-files-sending-from-filebeat-to-elaticsearch/240267>\
**Category:** Beats\
**Tags:** filebeat\
**Created:** [July 8, 2020, 6:09am UTC](https://discuss.elastic.co/t/not-skipping-the-folders-and-files-sending-from-filebeat-to-elaticsearch/240267 "2020-07-08T06:09:20Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![sukku77](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/sukku77/32/52068_2.png) [@sukku77](https://discuss.elastic.co/u/sukku77)\
**Post date:** [July 8, 2020, 6:09am UTC](https://discuss.elastic.co/t/not-skipping-the-folders-and-files-sending-from-filebeat-to-elaticsearch/240267/1 "2020-07-08T06:09:20Z")

</div>

Hi ,  
I am using filebeat version 7.3.1. There is an issue with the below sample filebeat configuration. I need to skip all the folders named "ignore" as mentioned in paths. I used the exclude\_files pattern, But those logs are processing by filebeat and pushing to elasticsearch. please correct the patterns or help to find out the issue , how to skip the folders named "ignore" in below context.

```
filebeat.inputs:
- type: log
  enabled: true
  paths:
   - "/apps/logs/mount1/*/*.log"
   - "/apps/logs/mount2/*/*.log"
   - "/apps/logs/mountn/*/*.log"
  exclude_files: ['^/apps/logs/*/ignore/*.log$']
  fields_under_root: true
  ignore_older: 1h
  close_inactive: 20s
  close_removed: true
  close_renamed: true
  clean_removed: true
  clean_renamed: true
  scan_frequency: 10s

```

Thanks in advance

---

<div class="post-metadata">

**Author:** ![kvch](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/kvch/32/72058_2.png) [@kvch](https://discuss.elastic.co/u/kvch)\
**Post date:** [July 9, 2020, 2:33pm UTC](https://discuss.elastic.co/t/not-skipping-the-folders-and-files-sending-from-filebeat-to-elaticsearch/240267/2 "2020-07-09T14:33:31Z")

</div>

Could you please share your debug logs (`./filebeat -e -d "*"`)?

---

<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:** [August 6, 2020, 4:33pm UTC](https://discuss.elastic.co/t/not-skipping-the-folders-and-files-sending-from-filebeat-to-elaticsearch/240267/3 "2020-08-06T16:33:33Z")

</div>

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