Forum Discussion
Oct 16, 2007
The easiest way to do this is to use the log statement to send the data you want to the system log and then analyze it later. The downside to this is that there is only a finite amount of disk storage on the BIG-IP and the log system wasn't designed to be a database. If you regularly clean out the logs, then this shouldn't be that big an issue.
Something like this should work for you.
when HTTP_REQUEST {
set uri [HTTP::uri]
set start [clock milliseconds]
}
when HTTP_RESPONSE {
log local0. "URI: $uri; Time: [expr [clock milliseconds] - $start] ms."
}
The output will be put in the /var/log/LTM file on the BIG-IP.
Good luck!
-Joe