Forum Discussion
hooleylist
Oct 21, 2009Cirrostratus
You 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