Re: How does http_find_header() work?

2011-04-01 Thread Roy Smith
On Apr 1, 2011, at 2:11 AM, Willy Tarreau wrote: On Thu, Mar 31, 2011 at 08:10:04AM -0400, Roy Smith wrote: I didn't really write a specification, but I think a critical part of the spec would be that the only guarantee about the id string is that it's unique It's unique within

Re: How does http_find_header() work?

2011-03-31 Thread Roy Smith
. If all the fields correspond to something meaningful, like host_id, pid, timestamp, etcetera, would it make sense to have them in a more human readable format? Regards, Bart On Thu, Mar 31, 2011 at 4:30 AM, Roy Smith r...@s7labs.com wrote: Willy, This turned out to be surprisingly

Re: How does http_find_header() work?

2011-03-30 Thread Roy Smith
Willy, This turned out to be surprisingly straight-forward. Patch attached (against the 1.4.11 sources). To enable generation of the X-Unique-Id headers, you add unique-id to a listen stanza in the config file. This doesn't make any sense unless you're in http mode (although my code doesn't

Re: How does http_find_header() work?

2011-03-28 Thread Roy Smith
On Mon, 2011-03-28 at 07:22 +0200, Willy Tarreau wrote: On Sun, Mar 27, 2011 at 09:28:15PM -0400, Roy Smith wrote: Thanks! Looks like capture request header does exactly what I want. Well, mostly. This gets me logging if the header exists. Now I need to figure out how to insert

Re: How does http_find_header() work?

2011-03-27 Thread Roy Smith
it for your needs. -- Roy Smith roy.sm...@s7labs.com

Parsing haproxy log files (python)

2011-03-18 Thread Roy Smith
Before I reinvent the wheel, has anybody already written code to parse haproxy log messages with Python?

Re: Adding a unique id header to each request?

2011-01-27 Thread Roy Smith
On Jan 26, 2011, at 1:09 AM, Willy Tarreau wrote: Hi Roy, On Sun, Jan 23, 2011 at 10:04:57AM -0500, Roy Smith wrote: Cool. What can I do to help? Could you try to identify precisely how it would be used at your site ? Try to think about these cases : - what to do with reqids

Re: Adding a unique id header to each request?

2011-01-27 Thread Roy Smith
the first one strip existing tags, and all the later ones keep them, since that would be the one added by the first one in the chain. On Jan 27, 2011, at 5:44 PM, Willy Tarreau wrote: Hi Roy, On Thu, Jan 27, 2011 at 02:51:37PM -0500, Roy Smith wrote: Try to think about these cases : - what

Re: Adding a unique id header to each request?

2011-01-23 Thread Roy Smith
Cool. What can I do to help? On Jan 23, 2011, at 12:51 AM, Willy Tarreau wrote: Hi Roy, On Sat, Jan 22, 2011 at 05:26:12PM -0500, Roy Smith wrote: Is there a way to have haproxy generate (and log) a unique ID for every incoming request, and add that ID as a header line to each outgoing

Re: Can't get server check to work with virtual hosts

2010-08-17 Thread Roy Smith
1.1 request with a Host: header in the http check, like this: option httpchk GET /index.html\r\nHost: vhost.example.com Graeme. On 17 August 2010 23:19, Roy Smith r...@panix.com wrote: I'm running HA-Proxy version 1.3.22 on Ubuntu Linux. I've got apache set up with two virtual hosts