Forum Discussion
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.
1 Reply
Hello,
The HTTP::payload command is not supported in the HTTP_RESPONSE_RELEASE event as stated in the wiki link: https://devcentral.f5.com/wiki/irules.http-response-release.ashx
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)Recent Discussions
Related Content
* Getting Started on DevCentral
* Community Guidelines
* Community Terms of Use / EULA
* Community Ranking Explained
* Community Resources
* Contact the DevCentral Team
* Update MFA on account.f5.com