Forum Discussion
Redirection Hit Count
How can I create a redirection hit counter within my iRules which perform scores of URL redirects?
3 Replies
- Arie
Altostratus
I can think of four options:
- Use Statistics (HTTP Analytics)?
- Use a sideband connection to increment a value in a database column (on a Database Server).
- Integrate with a 3rd party metrics service (e.g. Google Analytics).
- Write to an internal table on the LTM (probably the least preferred option).
- Arie
Altostratus
One more: if you're running your own metrics app (e.g. Urchin, Piwik, Webtrends) you could use a sideband connection to call the requested URL from your server farm. That would create a log entry that would eventually be reflected in the metrics app.
- Colin_Walker_12Historic F5 Account
There's always the stats profile within iRules which was designed for just this sort of thing. You can create your own stat counters and then track the operations you're looking for and later recall that data. It just depends on how much detail you want, how long you want to track things for, how you want to pull the data you're tracking, etc.
Colin
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)Recent Discussions
Related Content
* 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