# Multline in filebeat

**URL:** <https://discuss.elastic.co/t/multline-in-filebeat/57208>\
**Category:** Beats\
**Tags:** filebeat\
**Created:** [August 4, 2016, 10:57am UTC](https://discuss.elastic.co/t/multline-in-filebeat/57208 "2016-08-04T10:57:09Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Ganesh2303](https://avatars.discourse-cdn.com/v4/letter/g/57b2e6/32.png) [@Ganesh2303](https://discuss.elastic.co/u/Ganesh2303)\
**Post date:** [August 4, 2016, 10:57am UTC](https://discuss.elastic.co/t/multline-in-filebeat/57208/1 "2016-08-04T10:57:09Z")

</div>

HI,  
I'm just trying to split events from my log by using of multline concept. I have given my pattern to split the events but is failed to split and capturing entire data into single event in elasticsearch. Please find my pattern and input,

multiline:  
pattern: "\d{4}-\d{2}"  
negate: true  
match: before

2016-08-03 16:17:04,350 [171] [hi  
]  
2016-08-03 16:17:04,350 [171] [hi  
]  
2016-08-03 16:17:04,350 [171] [hi  
]

---

<div class="post-metadata">

**Author:** ![andrewkroh](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/andrewkroh/32/3784_2.png) [@andrewkroh](https://discuss.elastic.co/u/andrewkroh)\
**Post date:** [August 4, 2016, 3:22pm UTC](https://discuss.elastic.co/t/multline-in-filebeat/57208/2 "2016-08-04T15:22:49Z")

</div>

Try this:

```auto
    multiline:
      pattern: '\d{4}-\d{2}'
      negate: true
      match: after

```

---

<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:** [August 25, 2016, 10:57am UTC](https://discuss.elastic.co/t/multline-in-filebeat/57208/3 "2016-08-25T10:57:11Z")

</div>

This topic was automatically closed after 21 days. New replies are no longer allowed.
