Re: Logging long http headers

From: Willy Tarreau <w#1wt.eu>
Date: Sat, 6 Jun 2009 08:42:39 +0200


Hello,

On Fri, Jun 05, 2009 at 11:09:04AM -0700, Karl Pietri wrote:
> Is there a way to log more than 64 characters of a header? I've run into
> this problem twice now. once with cookies and now with referer. We
> currently pipe our logs around with syslog and have several live analysis
> scripts hooked up to them to give us realtime info about things, and now we
> want to use one to analyze referer info but we cant log the whole thing with
> haproxy.
> Is there a patch around or anything i could do to change this. I could see
> how this would be a performance impact but we are no where near stressing
> haproxy with our 10 mbits of traffic.

You need to change the following line in include/common/defaults.h :

#define CAPTURE_LEN 64

I realize that some default values cannot just be changed by a compile option, which is not very convenient. This will probably change in the future.

Regards,
Willy Received on 2009/06/06 08:42

This archive was generated by hypermail 2.2.0 : 2009/06/06 08:45 CEST