Forum Discussion

Juan_Bautista_L's avatar
Juan_Bautista_L
Icon for Nimbostratus rankNimbostratus
May 10, 2007

Statistics about Client IP and the Real Server assigned

Hello,

 

 

I need to obtain statistics about the real server that is assigned to each new connection. I think that is possible, using a iRule, obtain the real server IP assigned to the connection originated at a client IP.

 

 

Someone could help me???

 

 

Regards,

 

Juan B. López
  • Deb_Allen_18's avatar
    Deb_Allen_18
    Historic F5 Account
    Hi Juan --

     

     

    You can log the server and the client IP in the LB_SELECTED event:when LB_SELECTED {

     

    log local0. "Connection from [IP::client_addr] forwarded to [LB::server addr]"

     

    }Each time a connection is made through the iRule, the client and server address will be logged to the Local Traffic log (/var/log/ltm)

     

     

    HTH

     

    /deb
  • Thanks,

     

     

    I´m sure this iRule solve my problem.

     

     

    Best regards,

     

     

    Juan B. López