# Issue with filebeat multiline patterns

**URL:** <https://discuss.elastic.co/t/issue-with-filebeat-multiline-patterns/234321>\
**Category:** Beats\
**Tags:** filebeat\
**Created:** [May 26, 2020, 11:56am UTC](https://discuss.elastic.co/t/issue-with-filebeat-multiline-patterns/234321 "2020-05-26T11:56:37Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![sfenman](https://avatars.discourse-cdn.com/v4/letter/s/f04885/32.png) [@sfenman](https://discuss.elastic.co/u/sfenman)\
**Post date:** [May 26, 2020, 11:56am UTC](https://discuss.elastic.co/t/issue-with-filebeat-multiline-patterns/234321/1 "2020-05-26T11:56:38Z")

</div>

Hello, I am trying to setup filebeat for some multiline application logs directly to ES. So a log entry is always starting with the word "Started" or with the word "Queued" and has different number of lines each time. My filebeat.yml configuration looks like this :

```
  multiline.pattern: '(Started) | (Queued)'
  multiline.negate: true
  multiline.match: after 

```

But the result is that it takes almost all lines as a log entry. Is it something that I am doing wrong?

Thank you.

---

<div class="post-metadata">

**Author:** ![David\_Oceans](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/david_oceans/32/51452_2.png) [@David\_Oceans](https://discuss.elastic.co/u/David_Oceans)\
**Post date:** [May 26, 2020, 1:47pm UTC](https://discuss.elastic.co/t/issue-with-filebeat-multiline-patterns/234321/2 "2020-05-26T13:47:13Z")

</div>

Should be great have a tool of elastic to paste your piece of log and try this multiline or even the regex like exclude lines o include lines.

---

<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 23, 2020, 1:47pm UTC](https://discuss.elastic.co/t/issue-with-filebeat-multiline-patterns/234321/3 "2020-06-23T13:47:18Z")

</div>

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