Forum Discussion
jay_41157
Aug 26, 2010Nimbostratus
Heat Maps irule by Colin.
Hi,
Thanks to Colin Walker for the great heatmap's irule.
I have tried to implement this irule but run into some problems and not sure where to look..Below is what I see in the l...
jay_41157
Feb 14, 2011Nimbostratus
Posted By hoolio on 02/11/2011 02:51 PM
I haven't read through the iRule fully enough to understand all of the logic. But I think the immediate cause of the runtime TCL error is that $friendlyURL is null. It looks like this would happen if the URI was just forward slashes (one or more), as those are getting removed when saving the $friendlyURL variable here:
Strip slashes from URI to allow easy queries
set friendlyURL [string map {/ ""} [HTTP::uri]]
Aaron
Hi Aaron,
I added a check if its root url only then I strip the /'s else I leave them alone.
Strip slashes from URI to allow easy queries if its no root level
if { not ([HTTP::uri] equals "/" ) } {
set friendlyURL [string map {/ ""} [HTTP::uri]]
}
set friendlyURL [HTTP::uri]
This seems to be working. No errors in the logs I will request the developers to do load testing on this app.
The next question I have is regarding url classifications... I have created a data group called trackingurls in this data group I have a few URI's that I want to categorize stats by...
on the stats page I do not see any stats based on the url's all 0's any thoughts?
Thanks,
Jay
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