Forum Discussion
N_67263
Nimbostratus
Sep 19, 2014Identifying hits to the iRule.
Folks, how can I check the hits to a VIP that are being handled by the configured iRule? Also, what debug steps can help me find how how the iRule is handling the traffic?
Thanks,
Nik
mimlo_61970
Cumulonimbus
Sep 19, 2014You can use log statements in the iRule, which will send output to /var/log/ltm
log local0.debug "text"A common method is to use a debug variable, so you can turn it on and off easily
At the beginging of the rule
when RULE_INIT {
set static::debug 1
}and then in your code blocks
if { $static::debug >= 1 } { log local0.debug "Text" }change the static::debug to 0 in RULE_INIT to shut off logging, use values greater than 1 for more verbose levels and so on.
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)Recent Discussions
Related Content
DevCentral Quicklinks
* 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
Discover DevCentral Connects