Forum Discussion
Log pool member
if you want log each and every connection request, use below
when HTTP_REQUEST {
Once pool member has been selected log it.
log local0. "Selected member: [LB::server addr]"
}
- Mohammed_M_IrfaOct 12, 2018
Nimbostratus
Hi Noushad,
I have tested your suggested in my lab,but it is not working. while HTTP_REQUEST is not able to detect the pool member.
L4L7 iRule is working fine and it gives the correct output.
Output: "Rule /Common/LB_SELECTED_Log_pool_member : Selected member: 10.1.20.11"
Thanks Noushad and L4L7 for iRule.
- Noushad_VelladaOct 18, 2018
Nimbostratus
As per my testing, LB_SELECTED is not triggered for each HTTP requests. Depending on settings like persistence, Load balancing, OneConnect Profile etc, LB_SELECTED may not be triggered all the time. So I would recommend you run below irule
when LB_SELECTED {
Once pool member has been selected log it.
log local0. "Selected member: [LB::server addr]"
}
when HTTP_REQUEST { Once pool member has been selected log it. log local0. "Selected member: [LB::server addr]" }
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)Recent Discussions
Related Content
* Getting Started on DevCentral
* Community Guidelines
* Community Terms of Use / EULA
* Community Ranking Explained
* Community Resources
* Contact the DevCentral Team
* Update MFA on account.f5.com