Forum Discussion
hooleylist
Jun 10, 2011Cirrostratus
Hi Hame,
Which LTM version are you running? For 10.1.0+ it would be most efficient to use HSL::send to send a high speed logging TCP or UDP syslog message:
http://devcentral.f5.com/wiki/default.aspx/iRules/HSL__send.html
For 9.4.0 - 10.1.x you can use log to send a UDP syslog message to a remote syslog server. For versions 9.0 - 9.3.x your only option is to log through the local syslog daemon.
http://devcentral.f5.com/wiki/default.aspx/iRules/log
To actually log the selected server you can use the LB_SELECTED event. If you wanted to log when a serverside connection is established you can use the SERVER_CONNECTED event.
http://devcentral.f5.com/wiki/default.aspx/iRules/lb_selected
http://devcentral.f5.com/wiki/default.aspx/iRules/server_connected
http://devcentral.f5.com/wiki/default.aspx/iRules/events
Aaron