Forum Discussion
naladar_65658
Altostratus
Feb 10, 2012I could be wrong, but it seems like the events as you have them are out of order. You are using a local variable so once you set it, you should be able to call it using that same VIP/connection, but if HTTP_REQUEST is happening before the other event processes then I think you would see what you are seeing there. It can't read the variable because nothing is there. The iRule logging is taking place in the order which you have it in the iRule, but the execution doesn't seem to be following that particular order.
Here is a good iRule that may get you going in the right direction, check out the order of events on that:
http://devcentral.f5.com/wiki/iRules.APM-Portal-Host-Rewrite.ashx