Forum Discussion
Log pool member
this will be a quick one for you =)
i just wanna log the pool member to local.0 that is uses for each single connection attempt.
thx!
- L4L7_53191
Nimbostratus
Here is the most basic version I can think of (untested, check for typos please):when LB_SELECTED { Once pool member has been selected log it. log local0. "Selected member: [LB::server addr]" }
- millencol1n_619
Nimbostratus
thx, works fine! - Noushad_Vellad1
Altostratus
if you want log each and every connection request, use below
when HTTP_REQUEST {
- Mohammed_M_Irfa
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_Vellad1
Altostratus
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 {
- Noushad_Vellada
Nimbostratus
if you want log each and every connection request, use below
when HTTP_REQUEST {
- Mohammed_M_Irfa
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_Vellada
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 {
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