Forum Discussion

Roger_Otero_244's avatar
Roger_Otero_244
Icon for Nimbostratus rankNimbostratus
May 09, 2016

Im having problems with an iRule and not sure how to fix it, im new to the F5 world.

I have an iRule that i use to collect logs and send it to Splunk, its currently working on my 11.6.x appliances but i need to update to version 12 and i have an iRule that is not allowing me to complete the update. Please advise how i can fix this.

 

here is the portion of the iRule that is giving me an issue: when HTTP_RESPONSE_RELEASE { Check to see if a previous rule has issued a redirect if { ! [catch {HTTP::payload replace 0 0 {}}] } { if { [info exists log_msg] && $no_hsl == 0} { set log_msg "$log_msg total_time=[expr {[clock clicks -milliseconds] - $http_request_time}]" HSL::send $hsl $log_msg } set connection_time 0 } }

 

here is the error i get:

 

load_config_files: "/usr/bin/tmsh -n -g load sys config partitions all" - failed. -- 01070151:3: Rule [/Common/xxx.iRule.Standrad] error: /common/xxxx.ElevateiRule.Standard:110:error: [command is not valid in current event context (HTTP_RESPONSE_RELEASE)][HTTP::payload replace 0 0 {}] Unexpected Error: Loading configuration process failed.