# Filebeat Exclude\_lines config not working

**URL:** <https://discuss.elastic.co/t/filebeat-exclude-lines-config-not-working/160761>\
**Category:** Beats\
**Tags:** filebeat\
**Created:** [December 13, 2018, 3:03pm UTC](https://discuss.elastic.co/t/filebeat-exclude-lines-config-not-working/160761 "2018-12-13T15:03:15Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Miguel\_Leite](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/miguel_leite/32/41988_2.png) [@Miguel\_Leite](https://discuss.elastic.co/u/Miguel_Leite)\
**Post date:** [December 13, 2018, 3:03pm UTC](https://discuss.elastic.co/t/filebeat-exclude-lines-config-not-working/160761/1 "2018-12-13T15:03:15Z")

</div>

Hello,

I'm trying to ignore some log lines using Filebeat:

```
exclude_lines: ['StateManagerComponent[[:space:]]ERROR - ProcessConfirmBlock - Unknown blockUid']

```

This is supposed to match and exclude this specific log line event:

```
NetState	51497	2018/12/13 14:57:30.180	StateManagerComponent	ERROR - ProcessConfirmBlock - Unknown blockUid

```

But this is not working as I can always see this event on Kibana. Can anyone help me??

Thanks!!

---

<div class="post-metadata">

**Author:** ![chandra0651](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/chandra0651/32/30484_2.png) [@chandra0651](https://discuss.elastic.co/u/chandra0651)\
**Post date:** [December 13, 2018, 4:15pm UTC](https://discuss.elastic.co/t/filebeat-exclude-lines-config-not-working/160761/2 "2018-12-13T16:15:53Z")

</div>

I think your config is looking for exact match, can you try the below format.It should work.replace the message with your string

`exclude_lines: ['.*?(message).*']`

---

<div class="post-metadata">

**Author:** ![Miguel\_Leite](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/miguel_leite/32/41988_2.png) [@Miguel\_Leite](https://discuss.elastic.co/u/Miguel_Leite)\
**Post date:** [December 13, 2018, 4:29pm UTC](https://discuss.elastic.co/t/filebeat-exclude-lines-config-not-working/160761/3 "2018-12-13T16:29:25Z")

</div>

I tried but the event was still being shipped to kibana.

```
exclude_lines: ['.*?(StateManagerComponent[[:space:]]ERROR - ProcessConfirmBlock - Unknown blockUid).*']
```

---

<div class="post-metadata">

**Author:** ![Tek\_Chand](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/tek_chand/32/34318_2.png) [@Tek\_Chand](https://discuss.elastic.co/u/Tek_Chand)\
**Post date:** [January 3, 2019, 12:18pm UTC](https://discuss.elastic.co/t/filebeat-exclude-lines-config-not-working/160761/4 "2019-01-03T12:18:53Z")

</div>

@miguel, Can you please try below pattern:

```auto
exclude_lines: ['^.*StateManagerComponent	ERROR - ProcessConfirmBlock - Unknown blockUid.*$']

```

Thanks.

---

<div class="post-metadata">

**Author:** ![steffens](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/steffens/32/79630_2.png) [@steffens](https://discuss.elastic.co/u/steffens)\
**Post date:** [January 3, 2019, 2:48pm UTC](https://discuss.elastic.co/t/filebeat-exclude-lines-config-not-working/160761/5 "2019-01-03T14:48:25Z")

</div>

Can you please share your complete config?

---

<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:** [January 31, 2019, 2:48pm UTC](https://discuss.elastic.co/t/filebeat-exclude-lines-config-not-working/160761/6 "2019-01-31T14:48:38Z")

</div>

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