andrew_deackes_
Jul 13, 2009Nimbostratus
How log only specific source IP's?
Hi,
I did a little research and found the following i-Rule which seems to be exactly what I want for logging response times.
http://devcentral.f5.com/wiki/default.aspx/iRules/LogTcpAndHttpRequestResponseInfo.html
However, I'd like to be able to only log specific source IP's. I tried adding a data list of ips and using a line to match that list. So instead of:
when CLIENT_ACCEPTED {
Get time for start of TCP connection in milleseconds
set tcp_start_time [clock clicks -milliseconds]
the i-Rule starts:
when CLIENT_ACCEPTED {
if { [matchclass [IP::remote_addr] equals $::REQ_IP] }{
Get time for start of TCP connection in milleseconds
set tcp_start_time [clock clicks -milliseconds]
but I get errors when I try to install that. Can someone please advise how I change this i-Rule to only log for traffic from a specific IP?
Thanks
Andy