Forum Discussion
local variable within same irule on all events
Thank's, therefore the right way to log in may case should be:
when CLIENT_ACCEPTED { set debug 1 if {$debug != 0} {log local0.info "Client Connected, IP: [IP::client_addr], pool [LB::server pool]"} }
when HTTP_REQUEST { if {$debug != 0} {log local0.info "Client IP IP: [IP::client_addr], host [HTTP::host]"} }
when LB_SELECTED { if {$debug != 0} {log local0.info "in LB_SELECTED, IP [IP::client_addr]:[TCP::client_port], node [LB::server addr], pool [LB::server pool]"} }
when LB_FAILED { if {$debug != 0} {log local0.info "in LB_FAILED, IP [IP::client_addr]:[TCP::client_port], node [LB::server addr], pool [LB::server pool]"} }
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