Forum Discussion
THi
Jan 02, 2017Nimbostratus
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:
log local0. "http request : [HTTP::host][HTTP::uri]"
Resulting log line in /var/log/ltm is:
Jan 2 08:47:00 labbigip.xxx.yyy info tmm[20170]: Rule /Testpartition/test_irule : http request : test.xxx.yyy/
Haven't tested if it works similarly when having the logging statement within a proc. Worth trying, though.