Forum Discussion
Apr 20, 2007
That's the suggestion I would have given, but with one modification. I'd suggest using a single string instead of multiple ones. Less overhead is always better...
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 exists Referer], HTTP version [HTTP::version], JSESSION Cookie: [HTTP::cookie exists JSESSIONID], SSL: [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::status], Response Size: [HTTP::payload length], Duration: [expr $http_response_time - $http_request_time] "
}
-Joe