Forum Discussion
scott_sams_8256
Nimbostratus
Feb 20, 2009content tracking
we found an irule here by Kirk (thanks Kirk) that breaks content down by count. any genius out there that can take this and add total bytes for each category? our ecomm group wants to see the breakd...
JRahm
Admin
Feb 25, 2009Hmm, maybe it is necessary to only have a single stats profile per virtual, my bad. So in that case, I believe you will just need additional fields in the original profile, maybe call them HTML_len and Images_len:
when HTTP_RESPONSE {
switch -glob [HTTP::header "Content-type"] {
"image/*" {
STATS::incr "ContentType" "Images"
STATS::incr "ContentType" "Images_len" [HTTP::payload length]
}
}
}
32 fields should be enough to meet your needs.
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
