Forum Discussion

Hi_91037's avatar
Hi_91037
Icon for Nimbostratus rankNimbostratus
Dec 18, 2009

[LB::server addr] does not return pool member ip address

I want to log pool member ip address. I have 3 members in pool and want to log the ip address of the member being connected.

 

Does the following irule sounds good

 

 

when CLIENT_ACCEPTED {

 

log local0. "Client sent to [LB::server addr]"

 

}

 

 

But in bigip log, i do not see the member ip address. It just displays pool name

 

  • hoolio's avatar
    hoolio
    Icon for Cirrostratus rankCirrostratus
    A load balancing selection hasn't been made in the CLIENT_ACCEPTED event, so LB::server addr can't return the server IP address.

     

     

    You could log the pool member selection in the LB_SELECTED event using LB::server addr or the actual pool member used when a connection is established in the SERVER_CONNECTED event using IP::server_addr. The wiki pages for these commands have more detail.

     

     

    Aaron