# Multiple Multline pattern option

**URL:** <https://discuss.elastic.co/t/multiple-multline-pattern-option/153783>\
**Category:** Beats\
**Tags:** filebeat\
**Created:** [October 24, 2018, 11:23am UTC](https://discuss.elastic.co/t/multiple-multline-pattern-option/153783 "2018-10-24T11:23:06Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![osamaikhlas](https://avatars.discourse-cdn.com/v4/letter/o/4bbf92/32.png) [@osamaikhlas](https://discuss.elastic.co/u/osamaikhlas)\
**Post date:** [October 24, 2018, 11:23am UTC](https://discuss.elastic.co/t/multiple-multline-pattern-option/153783/1 "2018-10-24T11:23:06Z")

</div>

> I have two types of logs one start with (Waiting for message) and other start from (Message Length Received) so how to use multiline pattern with (OR) function  
> with below try i'm not getting any result

multiline.pattern: "^._Waiting For A Message._|^._Message Length Recieved MLI._"  
multiline.negate: true  
multiline.match: before

---

<div class="post-metadata">

**Author:** ![pierhugues](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/pierhugues/32/48383_2.png) [@pierhugues](https://discuss.elastic.co/u/pierhugues)\
**Post date:** [October 25, 2018, 2:09pm UTC](https://discuss.elastic.co/t/multiple-multline-pattern-option/153783/2 "2018-10-25T14:09:57Z")

</div>

@osamaikhlas the pattern is a unique regular expression, so you have to change it a little to be something like this.

```auto
 "^. *(Waiting For A Message|Message Length Recieved MLI).*"

```

**NOTES** There is a typo in `Recieved`, I am not sure if its intended or not.

---

<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:** [November 22, 2018, 2:09pm UTC](https://discuss.elastic.co/t/multiple-multline-pattern-option/153783/3 "2018-11-22T14:09:58Z")

</div>

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