Custom log format ?

Francis J. Lacoste flacoste at logreport.org
Fri Jan 13 18:29:34 CET 2006


On January 13, 2006 10:27, Pieterjan Heyse wrote:
> Hello folks,
>
> I am looking at lire, because I want to create a report from a not so
> common used log file format.
>
> I have currently got a script that logs to syslog in a separate file,
> but want lire to summarize this for me. One line in the log file looks
> like this :
>
> Jan 13 16:22:56 localhost apache: PERF: /login/index.php time:
> 0.028241s memory_total: 322608B (315KB) memory_growth: 311464B
> (304.2KB) includecount: 15 dbqueries: 1 ticks: 2 user: 3 sys: 0 cuser:
> 0 csys: 0 serverload: 0.07
>
> this is a custom performance log. Is it possible to create a custom
> scheme in lire, so I can see avg. time per page, memory per page,
> total avg memory, sort by memory, order by includecount ?

>
> Do I have to create a custom dlf, or how do I start from here? Can
> someone advise me here?
>

You would first create a custom DLF schema for your application and then write 
a DLF converter for that schema. You can then write report specifications to 
compute your reports. Since your log format is based on syslog you will be 
able to reuse the syslog parsing code (Lire::Syslog).

The developer's manual includes chapters on writing a DLF schema, a DLF 
converter and reports specifications. You will also find an example in the 
doc/examples subdirectory in the source tar ball.

Francis J. Lacoste

-- 
Francis J. Lacoste              . .           http://www.logreport.org
/^LogReport$/               . .               flacoste at logreport.org
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
Url : http://lists.logreport.org/pipermail/questions/attachments/20060113/d24dbca1/attachment.bin 


More information about the Questions mailing list