# Exclude files to be processed

**URL:** <https://discuss.elastic.co/t/exclude-files-to-be-processed/36093>\
**Category:** Beats\
**Tags:** filebeat\
**Created:** [December 1, 2015, 8:23pm UTC](https://discuss.elastic.co/t/exclude-files-to-be-processed/36093 "2015-12-01T20:23:04Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![tgdesrochers](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/tgdesrochers/32/51322_2.png) [@tgdesrochers](https://discuss.elastic.co/u/tgdesrochers)\
**Post date:** [December 1, 2015, 8:23pm UTC](https://discuss.elastic.co/t/exclude-files-to-be-processed/36093/1 "2015-12-01T20:23:04Z")

</div>

I currently use Logstash to read files in my directory. I use the input from file plugin and use path/to/logs/\*.log then use exclude statements to exclude the logs I don't want transported into my ES cluster.

Is there a way to exclude logs with filebeat? I want to test using filebeat in my environment but I don't want to import all files in that directory into my test cluster. Can this be done?

Thanks

---

<div class="post-metadata">

**Author:** ![tudor](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/tudor/32/3753_2.png) [@tudor](https://discuss.elastic.co/u/tudor)\
**Post date:** [December 1, 2015, 9:04pm UTC](https://discuss.elastic.co/t/exclude-files-to-be-processed/36093/2 "2015-12-01T21:04:45Z")

</div>

Currently this is not possible with Filebeat, but we track [this](https://github.com/elastic/filebeat/issues/298) as an enhancement request and plan it for the next release.

---

<div class="post-metadata">

**Author:** ![tgdesrochers](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/tgdesrochers/32/51322_2.png) [@tgdesrochers](https://discuss.elastic.co/u/tgdesrochers)\
**Post date:** [December 1, 2015, 9:45pm UTC](https://discuss.elastic.co/t/exclude-files-to-be-processed/36093/3 "2015-12-01T21:45:22Z")

</div>

Thank 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:** [July 5, 2017, 9:57pm UTC](https://discuss.elastic.co/t/exclude-files-to-be-processed/36093/4 "2017-07-05T21:57:49Z")

</div>


