# Exclude lines isn't working with multiline pattern

**URL:** <https://discuss.elastic.co/t/exclude-lines-isnt-working-with-multiline-pattern/274211>\
**Category:** Beats\
**Tags:** filebeat\
**Created:** [May 27, 2021, 1:09pm UTC](https://discuss.elastic.co/t/exclude-lines-isnt-working-with-multiline-pattern/274211 "2021-05-27T13:09:47Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![syrine\_chelly](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/syrine_chelly/32/84013_2.png) [@syrine\_chelly](https://discuss.elastic.co/u/syrine_chelly)\
**Post date:** [May 27, 2021, 1:09pm UTC](https://discuss.elastic.co/t/exclude-lines-isnt-working-with-multiline-pattern/274211/1 "2021-05-27T13:09:47Z")

</div>

this is my filebeat.yml

```auto
  exclude_lines: ['^[[:space:]]']
  multiline.pattern: '^(3[01]|0[1-9]|[12][0-9])(-?)(1[0-2]|0[1-9])(-?)([0-9]{4})'
  multiline.negate: true
  multiline.match: after 

```

i want to exclude the lines which begin with space in every event

---

<div class="post-metadata">

**Author:** ![legoguy1000](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/legoguy1000/32/54301_2.png) [@legoguy1000](https://discuss.elastic.co/u/legoguy1000)\
**Post date:** [May 31, 2021, 12:58pm UTC](https://discuss.elastic.co/t/exclude-lines-isnt-working-with-multiline-pattern/274211/2 "2021-05-31T12:58:56Z")

</div>

Can u provide an example logs that you're trying to match?

---

<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:** [June 28, 2021, 2:59pm UTC](https://discuss.elastic.co/t/exclude-lines-isnt-working-with-multiline-pattern/274211/3 "2021-06-28T14:59:42Z")

</div>

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