[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-devel
Subject:    Re: KLogTool
From:       Michael Goffioul <goffioul () imec ! be>
Date:       2002-10-24 7:49:53
[Download RAW message or body]

> >       - each log entry is a single line
> 
> For very long lines this is NOT the case for apache 1.3.x.

I would appreciate some example files (in private of course).

> >       - fields with spaces are quoted (otherwise it seems impossible
> >         to parse)
> 
> You should use regexes to parse them. If you want you should take a look at
> modlogan (http://jan.kneschke.de/projects/modlogan/) which is a very
> flexible log-file parser for multiple logfile-types (webserver, ftp-server,
> mail-server, streaming-server, ...)

klogtool is already based on regexp's. However, even with regexp's, I
don't see how you can parse reliably a line that contains successively
2 unquoted fields including spaces. Imagine a log format like:
%r %r. Or each of these fields must have a known format.

Michael.

-- 
------------------------------------------------------------------
Michael Goffioul		IMEC-DESICS-MIRA
e-mail: goffioul@imec.be	(Mixed-Signal and RF Applications)
Tel:    +32/16/28-8510		Kapeldreef, 75
Fax:    +32/16/28-1515		3001 HEVERLEE, BELGIUM
------------------------------------------------------------------
 
>> Visit http://mail.kde.org/mailman/listinfo/kde-devel#unsub to unsubscribe <<
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic