Forum Discussion
Chris_Olson
Nimbostratus
Dec 11, 2006Can't get logging to work
See the irule below. It is not working so I added a couple of lines for logging, but nothing shows up in the logs. The F5 accepts the rule syntax but I can't get anything to respond to it.
Lastly, we set up a website which had a pool associated with it. I then set up two other pools that we want and disabled the original pool. I'm wondering if that has anything to do with it. I tried to delete the old pool but when I try, I get the message that the pool is referenced by one or more rules and I can't delete it. I can't find the rule that points to the old pool. Perhaps this is one for support. In the meantime, does the irule look OK to you guys?
when HTTP_REQUEST {
set uri [string tolower [HTTP::uri]]
if { $uri starts_with "/app11" } {
log local0. "\$uri was $uri"
HTTP::uri [string map -nocase {"/app11" "/stars"} $uri]
pool App_EE_11
}
elseif { $uri starts_with "/app10" } {
log local0. "\$uri was $uri"
HTTP::uri [string map -nocase {"/app10" "/stars"} $uri]
pool App_EE_10
}
else {
log local0. "\$uri was $uri"
HTTP::uri [string map -nocase { * "/stars"} $uri]
pool App_EE_11
}
}
- JRahm
Admin
Has the iRule been applied against a virtual server? The logging should be in the /var/log/ltm file, just to clarify.
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