iRule Logging HTTP_REQUEST
I'm having a bit of an issue with an iRule - The issue is that the amount of failures against the iRule is increasing.
Many of the requests are passing, >2% are failing.
What I think is happening, is the Website that the F5 acts at the load balancer acts for is being subject to site scraping, and the Bots/Robots that are site scraping are not adhering to other iRules in place on the VIP, therefore this rule fails.
What i'd like help with if possible is some Logging which will log the Client IP that was associated with the error generated.
RULE
"rule true_src_rule { when HTTP_REQUEST { HTTP::header insert "True-Client-IP" [getfield [IP::client_addr] "%" 1] } }"
Error Example
"Mar 10 16:19:48 local/tmm2 err tmm2[6235]: 01220001:3: TCL error: true_src_rule - Operation not supported (line 1) invoked from within "HTTP::header insert "True-Client-IP" [getfield [IP::client_addr] "%" 1]" "