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.