# Filebeat Multiline.Pattern error parsing regexp

**URL:** https://discuss.elastic.co/t/filebeat-multiline-pattern-error-parsing-regexp/199988
**Category:** Beats
**Tags:** filebeat
**Created:** [September 18, 2019, 11:25am UTC](https://discuss.elastic.co/t/filebeat-multiline-pattern-error-parsing-regexp/199988 "2019-09-18T11:25:08Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![kollp](https://avatars.discourse-cdn.com/v4/letter/k/a4c791/32.png) [@kollp](https://discuss.elastic.co/u/kollp)
#### Post date: [September 18, 2019, 11:25am UTC](https://discuss.elastic.co/t/filebeat-multiline-pattern-error-parsing-regexp/199988/1 "2019-09-18T11:25:08Z")

</div>

Hello,

Can someone give me a hint why the following Regex is not working within filebeat?  
^[\d{4}[\S\s]+?]]?$

Errormessage is:  
2019-09-18T13:14:38.496+0200 ERROR instance/beat.go:877 Exiting: Error while initializing input: error parsing regexp: missing closing ]: `[^]+?\]\]?(?-m:$)` accessing 'filebeat.inputs.1.multiline.pattern' (source:'filebeat.yml')  
Exiting: Error while initializing input: error parsing regexp: missing closing ]: `[^]+?\]\]?(?-m:$)` accessing 'filebeat.inputs.1.multiline.pattern' (source:'filebeat.yml')

In [https://regex101.com/](https://regex101.com/) and [https://play.golang.org/](https://play.golang.org/) it works - but maybe I got something wrong with the supported regex dialect or engines

Thanks in advance.  
BW

---

<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: [October 16, 2019, 11:25am UTC](https://discuss.elastic.co/t/filebeat-multiline-pattern-error-parsing-regexp/199988/2 "2019-10-16T11:25:12Z")

</div>

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