iRule logging HTTP/SSL session times
script I'm running is as follows
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
when CLIENT_ACCEPTED {
Get time for start of TCP connection in milleseconds
set tcp_start_time [clock clicks -milliseconds]
}
when HTTP_REQUEST {
Get time for start of HTTP request
if {[HTTP::uri] ends_with ".html"} {
set url [HTTP::host][HTTP::uri]
set content_type [HTTP::header Content-Type]
set http_request_time [clock clicks -milliseconds]
} elseif {[HTTP::uri] ends_with ".htm"} {
set url [HTTP::host][HTTP::uri]
set content_type [HTTP::header Content-Type]
set http_request_time [clock clicks -milliseconds]
} elseif {[HTTP::uri] ends_with ".cgi"} {
set url [HTTP::host][HTTP::uri]
set content_type [HTTP::header Content-Type]
set http_request_time [clock clicks -milliseconds]
}
log "URL:$url "
}
when HTTP_RESPONSE {
Get time for end of HTTP request
set http_response_time [clock clicks -milliseconds]
set node [IP::server_addr]:[TCP::server_port]
}
when CLIENT_CLOSED {
set close_time [clock clicks -milliseconds]
set http_time [expr $close_time - $http_response_time]
set tcp_time [expr $close_time - $tcp_start_time]
Log the end time of the TCP connection
if {![info exists $url]} {
log "Content:$content_type URL:$url Client:[IP::client_addr] VIP:[IP::local_addr]:[TCP::local_port] Node:$node (HTTP response time $http_time ms) (TCP open for: $tcp_time ms) "
}
}
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
My issue is that the script keeps spitting out errors in the log
Any help is appreciated
regards
John Zammit