Yugandhar
Oct 16, 2018Nimbostratus
iRule to Log all the HTTP Requests.
Hi,
-
Can we log each HTTP request (GET / POST) coming to a VS i.e. when a client connects to a virtual server on port 80 then can we add a log entry for every HTTP request from that connection or session.
-
The Below iRule logs the IP of the client, Does this iRule get triggered for every HTTP Request ( GET / POST) with in a single connection so that there will be multiple entries of same client ip for a single connection.
when HTTP_REQUEST {
set VS [IP::local_addr]
set URI [HTTP::uri]
log "Client [IP::client_addr]:[TCP::client_port] connected to VS ($vip)for URI $URI"
}
Thanks,
Yugandhar.