# Events get combined

**URL:** <https://discuss.elastic.co/t/events-get-combined/126489>\
**Category:** Beats\
**Tags:** filebeat\
**Created:** [April 3, 2018, 2:09am UTC](https://discuss.elastic.co/t/events-get-combined/126489 "2018-04-03T02:09:18Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![las](https://avatars.discourse-cdn.com/v4/letter/l/5f9b8f/32.png) [@las](https://discuss.elastic.co/u/las)\
**Post date:** [April 3, 2018, 2:09am UTC](https://discuss.elastic.co/t/events-get-combined/126489/1 "2018-04-03T02:09:18Z")

</div>

I have multiline pattern as below.

```
multiline.pattern: ^\[0-9]{4}-[A-Za-z]{3}-[0-9]{2}
multiline.negate: true
multiline.match: after

```

My logs look like below.

```
2018-Apr-02 00:10:46 AM [http-nio-8888-exec-3] INFO com.example.controller.SampleController - got request for hello
2018-Apr-02 00:10:52 AM [http-nio-8888-exec-1] INFO com.example.controller.SampleController - got request for hello
2018-Apr-02 00:13:10 AM [http-nio-8888-exec-9] INFO com.example.controller.SampleController - got request for hello
2018-Apr-02 00:13:38 AM [http-nio-8888-exec-7] ERROR com.example.controller.SampleController - exception
java.lang.NullPointerException: null
    at com.example.controller.SampleController.exception(SampleController.java:32) [classes!/:?]
    at sun.reflect.GeneratedMethodAccessor31.invoke(Unknown Source) ~[?:?]
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:1.8.0_161]
    at java.lang.reflect.Method.invoke(Method.java:498) ~[?:1.8.0_161]

```

All the non-exception logs get combined and i see 1 entry on kibana.

The multiple exception messages also get combined and i see 1 entry on kibana.

I am not sure what i am missing. I dont have any include or exclude configuration. I am not using logstash.

---

<div class="post-metadata">

**Author:** ![steffens](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/steffens/32/79630_2.png) [@steffens](https://discuss.elastic.co/u/steffens)\
**Post date:** [April 3, 2018, 1:19pm UTC](https://discuss.elastic.co/t/events-get-combined/126489/2 "2018-04-03T13:19:57Z")

</div>

I haven't tested your configuration, but when defining regexes, use single quotes.

The pattern config should be more like this:

```auto
multiline.pattern: '^[0-9]{4}-[A-Za-z]{3}-[0-9]{2}'

```

Btw. why did you put a `\` before the first `[` ?

---

<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:** [May 1, 2018, 1:20pm UTC](https://discuss.elastic.co/t/events-get-combined/126489/3 "2018-05-01T13:20:16Z")

</div>

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