LA_Medina_32319
Apr 05, 2018Nimbostratus
How to Log the HTTP/HTTPS request and response for specific URL
Hi,
Any one can give the iRule syntax to Log the HTTP/HTTPS request and response for a specific URL. Preferably with the client IP address.
From what i read it should be something like:
when HTTP_REQUEST {
set uri [HTTP::uri]
set host [HTTP::host]
}
when SERVER_CONNECTED {
log local0. "[IP::client_addr]:[TCP::client_port] -> [IP::server_addr]:[TCP::server_addr] for http://$host$uri"
}
when LB_FAILED {
log local0. "[IP::client_addr]:[TCP::client_port] -> FAILED for http://$host$uri"
}
Would appreciate if anyone can advise if the above syntax is correct and enough to achieve what we need. We just basically want to logs the https traffic.