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?
posted by neuroshred to Computers & Internet (2 answers total)
 
Can you just "grep -v HEAD" the logfile before using Analog on it?
posted by nicwolff at 9:57 PM on April 18, 2005


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


« Older How can I find an affordable apartment in DC?   |   Jon Stewart on Oprah Newer »
This thread is closed to new comments.