# 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:** 2

<div class="post-metadata">

**Author:** ![robscott27](https://avatars.discourse-cdn.com/v4/letter/r/858c86/32.png) [@robscott27](https://discuss.elastic.co/u/robscott27)\
**Post date:** [December 27, 2017, 9:38pm UTC](https://discuss.elastic.co/t/filebeat-exclude-line-not-working/113358/2 "2017-12-27T21:38:22Z")

</div>

I ran into this same issue last week and never got a response, but I did find a work around. It doesn't hold through package updates though since the files get overwritten. Not sure if this will help you, but here's the topic I opened:

> [@Exclude\_lines regex isn't working](https://discuss.elastic.co/t/exclude-lines-regex-isnt-working/112723):
>
> I'm trying to exclude lines from apache log that contain /server-status?auto= within the line. It's a standard apache combined log file. exclude\_lines expressions I've tried: ['(?i:/server-status?auto=)'] ['.server-status.'] ['GET /server-status'] as well as a few other iterations I can't remember along the way. I even tried ['.'] and ['\*'] in order to trigger excluding EVERYTHING in the log just to make sure it was actually processing but neither of those had any effect and the logs still…

---

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