Forum Discussion
Rich_Caldwell_7
Nimbostratus
Oct 12, 2007Logging after built-in Variable modification
I noticed that after modifying a built in variable such as [HTTP::uri], when you try to log the change, it does not log the new value. See below in my code, where I change the value of [HTTP::uri], t...
hoolio
Cirrostratus
Oct 22, 2007As you found, some of the values are cached for performance reasons. I haven't seen a complete list of which are though. Unfortunately, if you want to log the modified version, you'd need to perform the function twice. Here's an example which sets the path to lowercase and logs the change:
when HTTP_REQUEST {
modify the path, set it to lowercase
HTTP::path [string tolower [HTTP::path]]
now log the change
log local0. "path changed to: [string tolower [HTTP::path]]"
}
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