On Fri, Apr 08, 2016 at 04:23:44PM +0000, Scott Rankin wrote:
> Hi Thierry,
> 
> Thanks for the suggestion - but the %[unique-id] variable is empty when I use
> the config below. I???m using HAProxy 1.6.4.  Did you have to do anything
> else to get that to show up?

I think you could as well try the following (if you're using both a frontend
and a backend) :

frontend ...
  unique-id-format %{+X}o\ %ci-%cp-%rt-%pid-%Ts%fp
  unique-id-header X-temp-Unique-ID

backend ...
  http-request add-header X-Unique-ID %[req.fhdr(X-temp-Unique-ID)] if 
...condition...
  http-request del-header X-temp-Unique-ID

I don't think it will work with everything in the same proxy as I guess
unique-id is added after http-request rules.

Regards,
Willy


Reply via email to