# Multiline patter not working for filebeat

**URL:** <https://discuss.elastic.co/t/multiline-patter-not-working-for-filebeat/175165>\
**Category:** Beats\
**Tags:** filebeat\
**Created:** [April 3, 2019, 10:25am UTC](https://discuss.elastic.co/t/multiline-patter-not-working-for-filebeat/175165 "2019-04-03T10:25:32Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![kumarvivek633](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/kumarvivek633/32/43303_2.png) [@kumarvivek633](https://discuss.elastic.co/u/kumarvivek633)\
**Post date:** [April 3, 2019, 10:25am UTC](https://discuss.elastic.co/t/multiline-patter-not-working-for-filebeat/175165/1 "2019-04-03T10:25:33Z")

</div>

I am using filebeat to ship data to logstash but my multiline pattern i s not working as expected.

> paths:  
> - D:/talent\_log.log  
> fields:  
> application: log-tc-local  
> tags: ["tc"]  
> include\_lines: ['._ERROR._']  
> multiline.pattern: '^[[0-9]{2}-[0-9]{2}-[0-9]{4}'  
> multiline.negate: true  
> multiline.match: after

and what output i am getting is as single line

> **03-04-2019** 09:47:21.243 DEBUG c.m.c.f.c.RollcallController.getStatesPickLists - get states picklist for country US **03-04-2019** 09:47:21.252 DEBUG c.m.c.fc.controller.LookupController.getPickLists - PicklistController.getPickListValues() method called passing SysPropId as : EMAIL **03-04-2019** 09:47:21.277 DEBUG c.m.c.fc.controller.LookupController.getPickLists - PicklistController.getPickListValues() method called passing SysPropId as : ADDRESS\_TYPE **03-04-2019** 09:47:21.294 ERROR c.m.c.f.e.GlobalExceptionHandler.logException - Error id-\>FEATURE\_CASTING-VPdWfWjzxK Talent instance is null here com.mediaservices.c2c.fc.execption.FcApplicationException: Talent instance is null here at com.mediaservices.c2c.fc.service.impl.DealServiceImpl.validateWorkActivityDate(DealServiceImpl.java:1029) at com.mediaservices.c2c.fc.service.impl.DealServiceImpl$$FastClassBySpringCGLIB$$1e0e4f2.invoke(\<generated\>) at org.springframework.cglib.proxy.MethodProxy.invoke(MethodProxy.java:204) at org.springframework.aop.framework.CglibAopProxy$CglibMethodInvocation.invokeJoinpoint(CglibAopProxy.java:747) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:163) at org.springframework.transaction.interceptor.TransactionAspectSupport.invokeWithinTransaction(TransactionAspectSupport.java:294)

As per the logs above filebeat has appended multiple lines in one also i have only included error wheres its giving debug as well.

---

<div class="post-metadata">

**Author:** ![Michal\_Pristas](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/michal_pristas/32/46639_2.png) [@Michal\_Pristas](https://discuss.elastic.co/u/Michal_Pristas)\
**Post date:** [April 3, 2019, 3:56pm UTC](https://discuss.elastic.co/t/multiline-patter-not-working-for-filebeat/175165/2 "2019-04-03T15:56:34Z")

</div>

hey @kumarvivek633  
can you please fix formatting and indentation in the config snippet?  
also what comes to mind, make sure that multiline config is part of your filebeat input definition

---

<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, 2019, 3:56pm UTC](https://discuss.elastic.co/t/multiline-patter-not-working-for-filebeat/175165/3 "2019-05-01T15:56:38Z")

</div>

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