# Exclude archive files from filebeat processing

**URL:** <https://discuss.elastic.co/t/exclude-archive-files-from-filebeat-processing/83147>\
**Category:** Beats\
**Tags:** filebeat\
**Created:** [April 21, 2017, 5:47am UTC](https://discuss.elastic.co/t/exclude-archive-files-from-filebeat-processing/83147 "2017-04-21T05:47:51Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![emilio](https://avatars.discourse-cdn.com/v4/letter/e/f475e1/32.png) [@emilio](https://discuss.elastic.co/u/emilio)\
**Post date:** [April 21, 2017, 5:47am UTC](https://discuss.elastic.co/t/exclude-archive-files-from-filebeat-processing/83147/1 "2017-04-21T05:47:51Z")

</div>

Dear all,

I need exclude archive files from filebeat processing.

My archive exstensions: \*.gz, \*.bz2

Currently i have configured exclusion of such type of files, but it is not working.

exclude\_files: [".gz$",".out$",".bz2$"]

Quick response will be greatly appreciated.

---

<div class="post-metadata">

**Author:** ![ruflin](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/ruflin/32/3116_2.png) [@ruflin](https://discuss.elastic.co/u/ruflin)\
**Post date:** [April 24, 2017, 8:25am UTC](https://discuss.elastic.co/t/exclude-archive-files-from-filebeat-processing/83147/2 "2017-04-24T08:25:45Z")

</div>

See here for an example: [https://www.elastic.co/guide/en/beats/filebeat/5.3/configuration-filebeat-options.html#exclude-files](https://www.elastic.co/guide/en/beats/filebeat/5.3/configuration-filebeat-options.html#exclude-files) You probably have the escape the dot.

---

<div class="post-metadata">

**Author:** ![emilio](https://avatars.discourse-cdn.com/v4/letter/e/f475e1/32.png) [@emilio](https://discuss.elastic.co/u/emilio)\
**Post date:** [April 24, 2017, 11:50am UTC](https://discuss.elastic.co/t/exclude-archive-files-from-filebeat-processing/83147/3 "2017-04-24T11:50:34Z")

</div>

Is there any differences between ['.gz$','.bz2$'] and [".gz$",".bz2$"] ?

---

<div class="post-metadata">

**Author:** ![ruflin](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/ruflin/32/3116_2.png) [@ruflin](https://discuss.elastic.co/u/ruflin)\
**Post date:** [April 26, 2017, 11:52am UTC](https://discuss.elastic.co/t/exclude-archive-files-from-filebeat-processing/83147/4 "2017-04-26T11:52:58Z")

</div>

Yes, single and double quotes can matter.

---

<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:** [May 24, 2017, 12:04pm UTC](https://discuss.elastic.co/t/exclude-archive-files-from-filebeat-processing/83147/5 "2017-05-24T12:04:06Z")

</div>

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