Re: make logging even better

From: Willy Tarreau <w#1wt.eu>
Date: Wed, 10 Feb 2010 22:58:44 +0100


On Wed, Feb 10, 2010 at 08:11:27AM -0600, Nicholas Hadaway wrote:
> Hello,
>
> (7:40:39 AM) raker: so... last weekend I upgraded to HAProxy 1.4_rc1...
> (7:40:56 AM) raker: and I enabled logging...
> (7:41:52 AM) raker: and I managed to write a LogFormat in analog that
> parses it!
> (7:42:07 AM) raker: LOGFORMAT (%j %j %j:%j:%j %j.%j %j[%j]: %S:%j
> [%d/%M/%Y:%h:%n:%j.%j] %j %j/%v %j/%j/%j/%j/%j %c %b - - %j
> %j/%j/%j/%j/%j %j/%j "%j %r %j")
>
> .......................
>
> (7:52:54 AM) raker: There is lots of good information in the logs...
> don't get me wrong... i'm sure 1.4 improved timing reports, etc...
> (7:54:28 AM) raker: Since the logging is so nice, it would be cool if
> you could set a configuration option so that the output of the logs is
> in a commonly used format... making it easier to parse the logs with
> something like analog, or awstats, or webalizer, etc...

just use :

      option httplog clf

and you'll have your logs in CLF format.

Regards,
Willy Received on 2010/02/10 22:58

This archive was generated by hypermail 2.2.0 : 2010/02/10 23:00 CET