Forum Discussion
Simon_Wright_85
Nimbostratus
Apr 04, 2008Reducing Web Log file size
Hi All
We are trying to reduce the size of our weblogs which run at many GB per day at the moment. Much of what is in them is simply noise such as image, css, js requests etc. I would like...
hoolio
Cirrostratus
Apr 04, 2008Hi,
It would be pretty simple to define a list of object types you want to send requests for to a specific pool. But maybe it would be cleaner to try to change the web server configuration to log only the object types you care about?
If you wanted to use an iRule, you could define a class of string objects like this:
class dynamic_object_types_class {
".asp"
".aspx"
}The rule could look like this:
when HTTP_REQUEST {
Check if the path (URI minus the query string) ends with a dynamic object type
if {[string tolower [HTTP::path]] ends_with $::dynamic_object_types_class}{
Send request to the dynamic object type pool for logging
pool dynamic_object_types_pool
} else {
Send request to the static object type pool to not log the request
pool static_object_types_pool
}
}Aaron
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
