# Multiline match pattern but don't send it

**URL:** <https://discuss.elastic.co/t/multiline-match-pattern-but-dont-send-it/125258>\
**Category:** Beats\
**Tags:** filebeat\
**Created:** [March 22, 2018, 7:45pm UTC](https://discuss.elastic.co/t/multiline-match-pattern-but-dont-send-it/125258 "2018-03-22T19:45:16Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![JimP](https://avatars.discourse-cdn.com/v4/letter/j/8baadc/32.png) [@JimP](https://discuss.elastic.co/u/JimP)\
**Post date:** [March 22, 2018, 7:45pm UTC](https://discuss.elastic.co/t/multiline-match-pattern-but-dont-send-it/125258/1 "2018-03-22T19:45:16Z")

</div>

Windows filebeat 6.2.3

My multiline pattern works great, and want to know if I can also filter out sending those patterns?

```
  multiline.pattern: '^[-]{6,}[]Event Log Start Here[][-]{6,}'
  multiline.negate: true
  multiline.match: after
  multiline.flush_pattern: '^[-]{6,}[]Event Log End Here[][-]{6,}'

```

This successfully processes the following entiry:

```
--------------- Event Log Start Here ---------------
EventId : 3, Level : Warning, Message : Some normal message that gets logged. Timestamp : 2018-03-22T19:29:52.7154207Z
--------------- Event Log End Here ---------------

```

Now, how can I have this not send the first and last lines, meaning, only send this:

```
EventId : 3, Level : Warning, Message : Some normal message that gets logged. Timestamp : 2018-03-22T19:29:52.7154207Z
```

---

<div class="post-metadata">

**Author:** ![exekias](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/exekias/32/28718_2.png) [@exekias](https://discuss.elastic.co/u/exekias)\
**Post date:** [March 23, 2018, 9:25pm UTC](https://discuss.elastic.co/t/multiline-match-pattern-but-dont-send-it/125258/2 "2018-03-23T21:25:20Z")

</div>

I think that's not possible, you may need to use Logstash to filter these using a pipeline

---

<div class="post-metadata">

**Author:** ![JimP](https://avatars.discourse-cdn.com/v4/letter/j/8baadc/32.png) [@JimP](https://discuss.elastic.co/u/JimP)\
**Post date:** [March 24, 2018, 1:02pm UTC](https://discuss.elastic.co/t/multiline-match-pattern-but-dont-send-it/125258/3 "2018-03-24T13:02:23Z")

</div>

Thank, I was just logging on to write the same thing. Logstash, here I come!@

---

<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:** [April 21, 2018, 1:02pm UTC](https://discuss.elastic.co/t/multiline-match-pattern-but-dont-send-it/125258/4 "2018-04-21T13:02:33Z")

</div>

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