Hi Vincent, 
Thanks for your question.  As written, the log reader doesn't support multiline 
logs.  However, if you're interested, please create a JIRA ticket and if 
possible, attach a sample log and we'll see what we can do. 
-- C 

> On Jul 23, 2019, at 8:11 AM, Vincent BENATIER <vbenat...@sp2.fr> wrote:
> 
> Hi all,
> 
> I was if the logfile plugin can handle multiline parsing ? 
> 
> When I try my regex syntax online, it works well but I seems that the
> "\\r\\n" are note recognized when trying to configure a logfile plugin in
> Apache Drill.
> Or perhaps I there another way to do but I could not find anything in the
> documentation or in the "Learning Apache Drill" book.
> 
> Someone could help ?
> 
> Vincent
> 
> Regex syntaxes I tried
> --------------------------
> "(\\[.+\\])(.+\\r\\n)(.+)"
> "(\\[.+\\])(.+)(\\r\\n.+)"
> "(\\[.+\\])(.+) \\r\\n (.+)"
> 
> File sample
> --------------
> [Thu May  2 00:17:50 2019]Local/ACTUAL///1/Info(1200450)
> External [GLOBAL] macro [@PHASE_INPUT] registered OK
> 
> [Thu May  2 00:17:50 2019]Local/ACTUAL///1/Info(1019008)
> Reading Application Definition For [ACTUAL]
> 
> [Thu May  2 00:17:50 2019]Local/ACTUAL///1/Info(1019009)
> Reading Database Definition For [Actual]
> 
> [Thu May  2 00:17:50 2019]Local/ACTUAL///1/Info(1019021)
> Reading Database Mapping For [ACTUAL]
> 
> [Thu May  2 00:17:50 2019]Local/ACTUAL///1/Info(1019010)
> Writing Application Definition For [ACTUAL]
> 
> [Thu May  2 00:17:50 2019]Local/ACTUAL///1/Info(1019011)
> Writing Database Definition For [Actual]
> 

Reply via email to