This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.
As suggested by Martin Smith, a way for the log parser to skip certain log records if they came from specific IP (similar to the SkipHost [1] directive in awstats) would be useful. [1] http://awstats.sourceforge.net/docs/awstats_config.html#SkipHosts Ways to filter out on other criteria (referer, etc) also suggested.
Created attachment 495 [details] Patch to check for new ExcludeHosts configuration directive Patch to add new configuration behavior and corresponding configuration file entry: -- begin ## ExcludeHosts : records that should not be processed ## ## space seperated list of expressions ## regexp-like syntax for match on the remote host or address ## DEFAULT = None ## NOTE: This uses whatever is in your log file, so you may want to ask Apache to start/stop resolving ## remote addresses to host names if you want to do hostname-based matching # ExcludeHosts ^localhost ^127\.0\.0\.1$ ExcludeHosts www\.bebr\.ufl\.edu ^inp-susanf
I chose to implement a directive with a name similar to that of ExcludeAreas: ## ExcludeHosts : records that should not be processed ## ## space seperated list of expressions ## regexp-like syntax for match on the remote host or address ## DEFAULT = None ## NOTE: This uses whatever is in your log file, so you may want to ask Apache to start/stop resolving ## remote addresses to host names if you want to do hostname-based matching # ExcludeHosts ^localhost ^127\.0\.0\.1$
(In reply to comment #1) By the way, my original comment had an extra line that I was using to test -- it can be removed in favor of the next one :)
Hi Martin, Not sure why this disappeared from my radar for so long. I'm looking at your patch(es) now.
OK, modulo one small issue with the excluding of records when a host/IP was matching, the patches were functional. I made a little fix and we're good to go (in CVS, and in CPAN by the end of the week).
Thanks again Olivier. I'm glad it finally made it in :)