Skip to content

Instantly share code, notes, and snippets.

@literadix
Created December 8, 2017 14:58
Show Gist options
  • Save literadix/9485ac0cff4d340be2362fcc56b8e99a to your computer and use it in GitHub Desktop.
Save literadix/9485ac0cff4d340be2362fcc56b8e99a to your computer and use it in GitHub Desktop.
Example configuration to log all http request (with post body)
global
log 127.0.0.1 local0
user root
group root
daemon
defaults
log global
mode http
option httplog
option dontlognull
retries 3
option redispatch
timeout connect 5000
timeout client 120000
timeout server 90000
frontend www-http
bind 0.0.0.0:9000
option http-buffer-request
declare capture request len 400000
http-request capture req.body id 0
log-format {"%[capture.req.hdr(0)]"}
default_backend node-servers
backend node-servers
server node google.com:80 maxconn 20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment