Re: AWStats and HAProxy Logs

From: Graeme Donaldson <graeme#donaldson.za.net>
Date: Wed, 15 Sep 2010 20:36:03 +0200


On 15 September 2010 18:25, Willy Tarreau <w#1wt.eu> wrote:

> On Wed, Sep 15, 2010 at 05:56:39PM +0200, Graeme Donaldson wrote:
> > As of 1.4, HAproxy does have the "option httplog clf" option, which
> > generates logs in "common log format", which AWstats understands just
> fine.
> > In our case however, we have used "combined log format" in the past,
> which
> > gives us the HTTP User-Agent and Referer headers, which enables some
> useful
> > stats in AWstats. Switching to common log format would reduce the amount
> of
> > information we get from our AWstats.
>
> You can still enable header captures though (check "capture request
> header").
>
> Regards,
> Willy
>
>

Nice, I wasn't aware of that. I'd add a caveat though.... according to the doc, header capture is limited to 64 bytes. Its usefulness would therefore be severely limited for headers like User-Agent or even Referer, which can easily exceed 64 bytes.

Graeme. Received on 2010/09/15 20:36

This archive was generated by hypermail 2.2.0 : 2010/09/15 20:45 CEST