Most Popular Pages on Kolich.com (Feb 15th through April 15th, 2009)

| No TrackBacks
My girlfriend recently asked me "so what is the most popular page on your blog?"  That was an interesting question, and to be honest, I had no idea.  I regularly monitor my Apache logs, so I had a rough idea of what's popular but I never actually dug into into my access logs to find out.  Using a few handy commands (awk, grep, sort, uniq) I determined that the most popular page on kolich.com is my post on Microsoft's IE8 Boondoggle: The IE8 Beta Incompatibility List.

My complete most popular list can be found here.

The command chain I used to analyze my access logs is as follows:

cat /var/log/httpd/mark.koli.ch-access_log* | awk '{print $7}' | \
grep html | grep -v "mt-static" | grep -v tracker | \
sort | uniq -c | sort --reverse -n | tee ~/popular.txt

This command produces a text file that looks something like this:

42 /2008/10/first-post.html
41 /2008/12/initial-implementation-of-gagawa-in-php-now-available.html
37 /2009/01/follow-up-four-more-reasons-why-i-dislike-facebook-and-myspace.html
36 /2008/10/obamas-prime-time-ad-skips-over-budget-realities.html
34 /2008/12/howto-recursively-delete-directories-on-windows.html
33 /2009/01/jpandmeghancom-a-work-of-css-art.html

I then wrote this PHP script which uses Gagawa to read the text file output and create a nice HTML template of the results.  Enjoy.

Did You Find this Helpful?

Did you find this post helpful, or at least, interesting?

  

Send Mark a Direct Message

If you'd like to send me a direct message, please do so below. However, I do not publicly post comments or messages submitted directly to me. So, if you're going to try to SPAM me, or my blog, you're pretty much wasting your time.

400 characters remaining

Error

About Mark

A Silicon Valley native, Mark Kolich is a full-time Software Engineer, a casual entrepreneur, and a consultant for hire. A web technologies expert, his current focus is on building powerful and robust cloud-driven web-applications using Java, PHP, Perl, AJAX, DHTML, CSS, and JavaScript. His favorite programming languages are PHP, Java and JavaScript. He uses Linux, enjoys biking to work, loves building great software, and always writes elegant, readable, and maintainable code.

No TrackBacks

No trackbacks attached to this entry.

Twitter (@markkolich)

Translate

About this Entry

This page contains a single entry by Mark Kolich published on April 18, 2009 12:42 PM.

10 Awesome .htaccess Hacks for Movable Type was the previous entry in this blog.

HOWTO: Make Your Own Solar Shield is the next entry in this blog.

Find recent content on the main index or look in the archives to find all content.