Forum Discussion
Mike_Rausch_628
Nimbostratus
Jul 18, 2007Need IRULE that logs URL requests
I am looking for an IRULE that I can use to view the URL's that are being requested from different users.
JRahm
Admin
Jul 18, 2007Hack away...
when HTTP_REQUEST {
set http_request_time [clock clicks -milliseconds]
set request_log_line "Client IP: [IP::remote_addr], \
requesting: [HTTP::method]/[HTTP::host][HTTP::uri], \
browser: [HTTP::header User-Agent], \
Referer: [HTTP::header value Referer], \
HTTP version [HTTP::version]"
}
when HTTP_RESPONSE {
set http_response_time [ clock clicks -milliseconds ]
log local0. "$request_log_line, \
HTTP status: [HTTP::status], \
Response Size: [HTTP::payload length], \
Duration: [expr $http_response_time - $http_request_time]"
}
Recent Discussions
Related Content
DevCentral Quicklinks
* Getting Started on DevCentral
* Community Guidelines
* Community Terms of Use / EULA
* Community Ranking Explained
* Community Resources
* Contact the DevCentral Team
* Update MFA on account.f5.com
Discover DevCentral Connects