Forum Discussion
mhuss3y_61750
Nimbostratus
Jun 05, 2009Profile fallback statistics
I have a profile with fallback configured. Is there a way I can view/record the number of times fallback occurs or the profile is invoked?
- The_Bhattman
Nimbostratus
Well you could do it if you assume the fall back is working when there is a LB failure.when RULE_INIT { log local0. "Initialize the count of requests: [STATS::set fallback "current_count" 0]" set ::count 0 } when HTTP_REQUEST { if { [HTTP::uri] starts_with "/give-me-stats-baby" } { set html_content "Fallback StatisticsIncremented the current count to: [STATS::incr fallback 'current_count']" HTTP::respond 200 content $html_content } } when LB_FAILED { log local0. "Incremented the current count to: [STATS::incr fallback "current_count"]" }
- mhuss3y_61750
Nimbostratus
Thanks CB.. i receive error message: - The_Bhattman
Nimbostratus
go ahead and remove line 2 out of the irule.
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