Forum Discussion
Angelo
Nimbostratus
Aug 01, 2012Logging not working...
this is the irule i have but the I'm not getting hits on logging....
when HTTP_REQUEST {
switch -glob [string tolower [HTTP::uri]] {
"/SolutionSORB*" {
pool ...
dlg_23340
Cirrus
Aug 01, 2012Also, just FYI the HTTP_REQUEST section of your code will never work. You're looking at the lower-cased version of [HTTP::uri], but your switch cases contain capital letters.
Actually, I suspect this is why you're not seeing any logging. Your default will always hit, which is "reject", so no one will ever have an HTTP_RESPONSE event occur.
And furthermore, you can use switch fall-through to avoid having "pool pool_sorb_domain" in multiple switch blocks, like so:
switch -glob [string tolower [HTTP::uri]] {
"/SolutionSORB*" -
"/ServiceSORB*" -
"/ServiceFileProcessor*" { pool pool_sorb_domain }
...
The - after the first and second cases indicate to the switch that it should perform the action for the next case, as if it had matched there. It will "fall through" multiple dashes, so you only need to put that pool pool_sorb_domain once.
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