Live data from Hacker News

Ask HN: what software do you use for analyzing apache logs?

news.ycombinator.com

1–10 of 22 posts

Re: Ask HN: what software do you use for analyzing apache logs?

#4

I use analog.

I use a combination of analog and some custom scripts. analog is written by a profession statistician and is a steadfast tool. The custom scripts look for interesting searches. Classics include "What does the fur on a rat do?" and "How do I connect an airbrush to a scubadiving tank?"

Re: Ask HN: what software do you use for analyzing apache logs?

#8
Started with Webalizer, switched to Google Analytics.

Webalizer's ok, but it's missing a bunch of features like sane user agent string parsing (to give an overview of the browsers accessing your site). It also displays most of the stats by page hits (such as country and user agent) rather than "visits" or unique IPs, which I think is a better way to group.

I've been pretty happy with Google Analytics so far - it has a ton of options for sorting and grouping data (like viewing users' paths through the links on the site) and good IP geolocation. Plus, the JavaScript tracker gives you stats on visitors' screen resolution, which can be handy. On the downside, all our data is belong to Google.

Re: Ask HN: what software do you use for analyzing apache logs?

#9
apachelog is a nice python module for parsing log lines from apache. it works as a great base for doing your own analysis. http://code.google.com/p/apachelog/

It's based on this perl module: http://cpan.uwinnipeg.ca/~peterhi/Apache-LogRegex

To manage log files, use cronolog

edit: I use cronolog to break up the logfiles daily and then I run a python script (which uses apachelog to handle the nasty parsing) to create a summary dictionary of parameters from that day. For example:

{num_unique_ips:140, num_pageviews:532, ...}

I pickle that dictionary and save it as a file. So every day has a raw log file and a "summary dictionary" file. To make plots I go through the summary files and unpickle them to extract the quantities of interest.

Post reply on HN