Forum Discussion
jkstraw_44238
Nimbostratus
Apr 20, 2007Tracking requests and responses
Hi,
I am working with an iRule provided by System Engineer at F5. The iRule was designed to give us the same information our custom apache log gives us (we are moving from Apace to F5). ...
jkstraw_44238
Nimbostratus
Apr 23, 2007Just closing off this thread: Here is what I ended up using to get apache like custom logging:
when HTTP_REQUEST {
set http_request_time [clock clicks -milliseconds]
set request_log_line "\
[HTTP::request_num],\
[IP::remote_addr],\
[HTTP::method],\
[HTTP::version],\
[HTTP::host],\
\"[HTTP::uri]\",\
\"[HTTP::header value Referer]\",
\"[HTTP::header User-Agent]\",\
\"[HTTP::cookie value JSESSIONID]\",\
[SSL::cipher name],\
[SSL::cipher version],\
[SSL::cipher bits]"
}
when HTTP_RESPONSE {
set http_response_time [ clock clicks -milliseconds ]
log local0. "$request_log_line,\
[HTTP::status],\
[HTTP::payload length],\
[expr $http_response_time - $http_request_time]"
}
This gives a log in this format:
Apr 23 15:13:29 tmm tmm[1466]: Rule My_Logging : 2, 192.168.1.222, GET, 1.1, host.domain.local, "/client_load_testing/startPointServlet", "https://client.domain.local/client_load_testing/", "Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.3) Gecko/20070309 Firefox/2.0.0.3", "8962B5E85F49648F87EE71553EED3390", RC4-MD5, TLSv1, 128, 302, 0, 73
Thank you for all the prompt and helpful responses - greatly appreciated!
Cheers
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)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
