1. listen proxy-out
    2. mode http
    3. option httplog
    4. option logasap
    5. log global
    6. server cache1 192.168.1.1:3128
    7. # log the name of the virtual server
    8. capture request header Host len 20
    9. # log the amount of data uploaded during a POST
    10. capture request header Content-Length len 10
    11. # log the beginning of the referrer
    12. capture request header Referer len 20
    13. # server name (useful for outgoing proxies only)
    14. capture response header Server len 20
    15. # logging the content-length is useful with "option logasap"
    16. capture response header Content-Length len 10
    17. # log the expected cache behavior on the response
    18. capture response header Cache-Control len 8
    19. # the Via header will report the next proxy's name
    20. capture response header Via len 20
    21. # log the URL location during a redirection
    22. capture response header Location len 20
    23. proxy-out/cache1 0/0/0/162/+162 200 +350 - - ---- 0/0/0/0/0 0/0 \
    24. {fr.adserver.yahoo.co||http://fr.f416.mail.} {|864|private||} \
    25. "GET http://fr.adserver.yahoo.com/"
    26. >>> Aug 9 20:30:46 localhost \
    27. haproxy[2022]: 127.0.0.1:34020 [09/Aug/2004:20:30:46] proxy-out \
    28. proxy-out/cache1 0/0/0/182/+182 200 +279 - - ---- 0/0/0/0/0 0/0 \
    29. {w.ods.org||} {Formilux/0.1.8|3495|||} \
    30. "GET http://trafic.1wt.eu/ HTTP/1.1"
    31. >>> Aug 9 20:30:46 localhost \
    32. haproxy[2022]: 127.0.0.1:34028 [09/Aug/2004:20:30:46] proxy-out \
    33. proxy-out/cache1 0/0/2/126/+128 301 +223 - - ---- 0/0/0/0/0 0/0 \
    34. {www.sytadin.equipement.gouv.fr||http://trafic.1wt.eu/} \
    35. "GET http://www.sytadin.equipement.gouv.fr/ HTTP/1.1"