I’m trying to write a subroutine that can log which event it was in when called. But I have not been able to find documentation as to which built-in variable would contain the current event name. If anyone can point me to a document that has this information or even just knows off the top of their head, I’d appreciate it.
I am not aware of a specific variable that identifies the event. May be try looking under “event name” or “event info”.
Assuming you don’t have a lot of events, you can just explicitly use the name like HTTP_REQUEST within that event, if that satisfies your requirements.
If you need to log the event name, then put any logging statement to the iRule. The logger will insert the irule and the event names automatically into the log line, for example I’m logging the request uri with: