# Negate/Ignore certain files

**URL:** <https://discuss.elastic.co/t/negate-ignore-certain-files/38317>\
**Category:** Beats\
**Tags:** filebeat\
**Created:** [January 4, 2016, 1:53pm UTC](https://discuss.elastic.co/t/negate-ignore-certain-files/38317 "2016-01-04T13:53:25Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![lwhitworth](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/lwhitworth/32/6940_2.png) [@lwhitworth](https://discuss.elastic.co/u/lwhitworth)\
**Post date:** [January 4, 2016, 1:53pm UTC](https://discuss.elastic.co/t/negate-ignore-certain-files/38317/1 "2016-01-04T13:53:25Z")

</div>

Hi all,

I have a number of files in a folder called something similar to:

> file1-auth-detail-20160101.gz  
> file1-auth-detail-20160102.gz  
> file1-auth-detail-20160103  
> file1-auth-detail-20160104

I want to ingest the files that **aren't** the gzips. In bash I'd just do something similar to `ll /usr/local/var/log/radius/radacct/*auth*[!gz]` to list out just the files I'm interested in, so I put the following in my filebeat.yml:

> - 
> 
> ```
> paths:
> - /usr/local/var/log/radius/radacct/*auth*[!gz]
> document_type: radiusacct
> 
> ```

However, this doesn't appear to be working. Is there anyway to achieve what I want without having to rename files or move others?

Cheers

---

<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:** [January 4, 2016, 2:09pm UTC](https://discuss.elastic.co/t/negate-ignore-certain-files/38317/2 "2016-01-04T14:09:30Z")

</div>

Currently this is not possible. With 1.1 a new feature exclude\_files and include\_files will be introduce, which will make it possible to exculde all files ending with .gz for example. Have a look here: [https://github.com/elastic/beats/pull/563](https://github.com/elastic/beats/pull/563)

---

<div class="post-metadata">

**Author:** ![lwhitworth](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/lwhitworth/32/6940_2.png) [@lwhitworth](https://discuss.elastic.co/u/lwhitworth)\
**Post date:** [January 4, 2016, 2:12pm UTC](https://discuss.elastic.co/t/negate-ignore-certain-files/38317/3 "2016-01-04T14:12:32Z")

</div>

Awesome cheers for the reply. I think I've just hit upon a temporary solution in this case by using \*_/usr/local/var/log/radius/radacct/auth-detail-[0-9][0-9][0-9][0-9][0-9][0-9][0-9][0-9]_ but haven't tested it for more than a few minutes so far so will see if it holds!

---

<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:** [January 4, 2016, 2:24pm UTC](https://discuss.elastic.co/t/negate-ignore-certain-files/38317/4 "2016-01-04T14:24:17Z")

</div>

As an alternative you can use the nightly build for 1.1 which should be quite stable: [https://beats-nightlies.s3.amazonaws.com/index.html?prefix=filebeat/](https://beats-nightlies.s3.amazonaws.com/index.html?prefix=filebeat/)

---

<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/negate-ignore-certain-files/38317/5 "2017-07-05T21:57:05Z")

</div>


