Forum Discussion
Joe_Erchul_4263
Nimbostratus
Jan 22, 2010Counting unique web sessions via iRule?
All,
I'm looking for some guidance on how to count unique web sessions hitting a specific GET request on a VIP during a specific period of time. I'm trying to script something that our...
hoolio
Cirrostratus
Jan 22, 2010Hi Joe,
Do you want to count app sessions or just individual GET requests to a specific URI?
Which LTM version are you running? The options vary a bit depending on which version you're running.
In general, you could use an iRule to increment a stats profile each time the condition you want to check for is reached. You could add a "secret" URI which allows an admin to reset the stats. Similarly you could enable/disable the counting if a specific URI is accessed. You could limit access to these URIs based on source IP or some other request characteristic.
Here is an article from Joe with a great example of using an iRule and stats profile together:
Custom Reporting with iRules
http://devcentral.f5.com/Default.aspx?tabid=63&articleType=ArticleView&articleId=66
Aaron
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)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
