Forum Discussion
ltp_55848
Nimbostratus
Nov 11, 2011GTM iRules not logging
I'm seeing some odd behavior on two GTM devices. I have the following iRule that I'm using to troubleshoot:
when DNS_REQUEST {
log local0. "(Request) Client: [IP::client_addr] - Request: [DNS::rrname] - Type: [DNS::rrtype]"
}
when LB_SELECTED {
log local0. "(Balanced) Server: [LB::server]"
}
when LB_FAILED {
log local0. "(Failure) Failed to balance"
}
But the rule is not being processed on requests to the wide-ip it has been assigned to, even when the wide-ip is resolved explicitly against the GTM listener address.4 Replies
- Hi,
how do you know the iRule is not beeing processed? Did you check /var/log/ltm for the log messages (iRule log messages go there)?
Regards
Kurt Knochner - ltp_55848
Nimbostratus
Hi Kurt, the rules aren't producing output in any logfile under /var/log, hence what lead me to believe that the rules were not working.
I've updated the rule to also log on a RULE_INIT event, which does generate a log event, however the other event types are not being matched. - O.K. I'm using similar iRules on GTM and they do log into /var/log/ltm.
can you please:
1.) tell me the TMOS version of your GTM ("b version")
2.) post the wide ip configuration, containing the iRule (/config/gtm/wideip.conf)
Regards
Kurt Knochner - ltp_55848
Nimbostratus
Hi Kurt,
the problem turned out to be due to the listeners on which the iRules were applied not being in the same route domain as the incoming request, hence they were never being triggered.
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