# Filebeat : how to exclude lines

**URL:** <https://discuss.elastic.co/t/filebeat-how-to-exclude-lines/282306>\
**Category:** Beats\
**Tags:** filebeat\
**Created:** [August 24, 2021, 7:39am UTC](https://discuss.elastic.co/t/filebeat-how-to-exclude-lines/282306 "2021-08-24T07:39:26Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![Shaoranlaos](https://avatars.discourse-cdn.com/v4/letter/s/c57346/32.png) [@Shaoranlaos](https://discuss.elastic.co/u/Shaoranlaos)\
**Post date:** [August 24, 2021, 7:45am UTC](https://discuss.elastic.co/t/filebeat-how-to-exclude-lines/282306/2 "2021-08-24T07:45:04Z")

</div>

Have you tried the exclude\_lines options on the input?  
I'm using that since Version 5 to exclude some nonsensical lines (empty lines and separator lines) in our logs.

```auto
filebeat.inputs:
- type: log
  exclude_lines: ["^-*$", "^$"]
...

```

> **[Log input | Filebeat Reference \[7.14\] | Elastic](https://www.elastic.co/guide/en/beats/filebeat/current/filebeat-input-log.html#filebeat-input-log-exclude-lines)**

For your case it would probably be something like  
`excluse_lines: ["OPTIONS"]`

---

_[View the full topic](https://discuss.elastic.co/t/filebeat-how-to-exclude-lines/282306)._
