Forum Discussion

Hame_35062's avatar
Hame_35062
Icon for Nimbostratus rankNimbostratus
Jun 10, 2011

logging every transaction when pool member is selected

How to get syslog for every time, when pool member is selected.

I have 3 servers for one pool. When ever pool member is selected, I need to log these events.

 

 

 

eventually, logging every transaction when pool member is selected

 

1 Reply

  • 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