Forum Discussion
Bruce_Hampton_1
Jun 27, 2012Nimbostratus
Logging HTTP::request pre and post HTTP profile
I thought this was simple, but I don't have it working just yet.
I need to log to the local0. the HTTP request as it was received by the LTM, and ALSO as it is being sent out on the server s...
hooleylist
Jun 27, 2012Cirrostratus
Hi Bruce,
HTTP_REQUEST_SEND is a serverside context event. You can use the clientside command to run commands in the clientside context for a serverside event.
But in this case, you could use priority to log the updated [HTTP::request] value:
when HTTP_REQUEST {
log local0. "Pre: [HTTP::request]"
}
when HTTP_REQUEST priority 501 {
log local0. "Post: [HTTP::request]"
}
Not needed to log the updated value, but you can use clientside {} to run the command in HTTP_REQUEST_SEND
when HTTP_REQUEST_SEND {
clientside {
log local0. [HTTP::request]
}
}
Also note that in 11.0+ HTTP:: get commands show updated values within the same event, if they've been updated.
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