# Filebeat exclude line not working :(

**URL:** <https://discuss.elastic.co/t/filebeat-exclude-line-not-working/113358>\
**Category:** Beats\
**Tags:** filebeat\
**Created:** [December 27, 2017, 7:47pm UTC](https://discuss.elastic.co/t/filebeat-exclude-line-not-working/113358 "2017-12-27T19:47:39Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

**Author:** ![funtimes](https://avatars.discourse-cdn.com/v4/letter/f/f08c70/32.png) [@funtimes](https://discuss.elastic.co/u/funtimes)\
**Post date:** [December 27, 2017, 9:52pm UTC](https://discuss.elastic.co/t/filebeat-exclude-line-not-working/113358/3 "2017-12-27T21:52:26Z")

</div>

@robscott27 You are awesome!!!!!

I followed your example for the nginx config file at

```auto
/usr/share/filebeat/module/nginx/access/config/nginx-access.yml

```

Added this last line to the bottom

```auto
type: log
paths:
{{ range $i, $path := .paths }}
 - {{$path}}
{{ end }}
exclude_files: [".gz$"]
exclude_lines: ['.*feedback.*']

```

And now it works as expected!!!! Thank you so much!! Wish I would have found that post earlier! Have been beating my head against the wall for days.

---

_[View the full topic](https://discuss.elastic.co/t/filebeat-exclude-line-not-working/113358)._
