Pass HAProxy healthcheck requests as User-agent "LB-Check" to the backend webservers(apache)
- by Joseph
I have a HAProxy setup in front of webservers(apache) for loadbalancing. Also healthchecks for these webservers are also configured in HAProxy.
option httpchk HEAD /healthcheck.txt HTTP/1.0
Is it possible to transfer these healthcheck requests to backend webservers as "LB-Check" User-agent or any other option, so that I can distinguish it from other log entries?
However I dont want to go for "dontlog" option, as I dont want to miss these entries.