drill-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Vincent Bénatier <vbenat...@sp2.fr>
Subject RE: Help needed : logfile plugin multiline parsing
Date Tue, 23 Jul 2019 18:53:30 GMT
Hi Charles,

Thank you for your quick answer and sorry if I missed something in the
online doc or inside the book.
(By the way, congratulations for this work because I find it very clear and
very useful.)

I will follow your advice and create a JIRA ticket.

Thanks again.

Vincent

-----Message d'origine-----
De : Charles Givre [mailto:cgivre@gmail.com] 
Envoyé : mardi 23 juillet 2019 18:08
À : user@drill.apache.org
Objet : Re: Help needed : logfile plugin multiline parsing

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 <vbenatier@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]
> 


Mime
View raw message