Excluding HEAD requests in stats analysis
April 18, 2005 9:11 PM Subscribe
How do I exclude HEAD requests when using Analog Helper to analyze site stats?
Lately I have been receiving a ton of HEAD requests in my logfiles, and I would like to filter them out of my logfile analysis. Is there an Analog command I can use in Analog Helper to exclude HEAD requests yet keep GETs?
Lately I have been receiving a ton of HEAD requests in my logfiles, and I would like to filter them out of my logfile analysis. Is there an Analog command I can use in Analog Helper to exclude HEAD requests yet keep GETs?
I dunno about analog helper, but you're describing a classic use of grep:
grep -v "\"HEAD" logfile > headless.logfile
where "logfile" is your raw logfile, produces "headless.logfile" a copy of the log file without the "HEAD" requests.
(On preview: I include the leading quote mark in front of HEAD in case you've got any urls with HEAD in them.)
posted by orthogonality at 10:05 PM on April 18, 2005
grep -v "\"HEAD" logfile > headless.logfile
where "logfile" is your raw logfile, produces "headless.logfile" a copy of the log file without the "HEAD" requests.
(On preview: I include the leading quote mark in front of HEAD in case you've got any urls with HEAD in them.)
posted by orthogonality at 10:05 PM on April 18, 2005
This thread is closed to new comments.
posted by nicwolff at 9:57 PM on April 18, 2005