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 to find a way of just logging requests for specific page types such as .asp. This would reduce our log files by as much as 95% which would be a big help.
I had the idea of writing an irule that would send a request to a separate pool of 'logging' servers whenever a request was made for a page type we wanted to log. This would mean the logging server log files would only contain the specific information we want to log and so reduce considerably our log file size.
Before i dive off down the path of writing an irule for this i wondered if other people had tried to resolve this same problem and how they did it.
Thanks in advance
Simon
- hoolio
Cirrostratus
Hi,class dynamic_object_types_class { ".asp" ".aspx" }
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 } }
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