Forum Discussion
Rob_Wotton_8024
Nimbostratus
Oct 21, 2009Multiple Pool Redirection Based on IP
Hi
I am struggling with an iRule at the moment, in simple English when the URI starts with /product1 and is from IP address 1.1.1.1 we need to use pool product1-CustomerA. If the URI st...
hoolio
Cirrostratus
Oct 21, 2009You can view the logs in the GUI under System | Logs | Local Traffic. Or more ideally, access the CLI via SSH and run 'tail -f /var/log/ltm' without the single quotes to follow the end of the ltm log file. You can type Ctrl+c to stop the tail from running.
Also, I think * will match 0 or more characters. So /test* would match /test:
when RULE_INIT {
switch -glob "/test" {
"/test*" {log local0. "matched"}
default {log local0. "no match"}
}
}
Log output:
: matched
And using string match to test:
% string match /test* /test
1
Or is that not what you meant?
Aaron
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