Linux Magazine: Getting a Handle on Traffic | Linux Today

Linux Magazine: Getting a Handle on Traffic

Written By
Web Webster
Web Webster
Jan 3, 2003

“When running a Web site of any size, it helps to learn about
the visitors you’re attracting. The traditional solution for
monitoring Web traffic is a log file analysis tool such as analog
(http://www.analog.cx). analog is very fast, but what if you’d like
real-time or near-real-time statistics? You could run analog from
cron every five minutes, but what if you also want to issue ad-hoc
queries against your logs to answer very specific questions like,
‘What’s the average number of pages that each Internet Explorer
user views?’

“Things begin to get difficult when you try to customize most
Web log reporting tools. And that’s a shame. There’s a lot of
interesting questions you might want to ask about your Web traffic:
‘Where are users coming from? How do users find my site? Do users
usually enter through the home page, or does a search engine send
them to a more specific page? Which browsers are being used? What
are my most popular ‘404-ing’ (missing) URLs? Is another site using
my images?’

“Unfortunately, most tools can’t answer all those kinds of
questions out of the box. To answer those questions, you typically
need to extend an existing tool, write your own tool, or spend some
quality time with awk, grep, and wc.

“Or, you can turn to LAMP. By combining Linux, Apache (and
mod_log_sql), MySQL, and PHP, you can build a customized logging
and reporting system without a lot of effort. This month, let’s
look at how to set up logging…”

Complete
Story

Web Webster

Web Webster

Web Webster has more than 20 years of writing and editorial experience in the tech sector. He’s written and edited news, demand generation, user-focused, and thought leadership content for business software solutions, consumer tech, and Linux Today, he edits and writes for a portfolio of tech industry news and analysis websites including webopedia.com, and DatabaseJournal.com.

Linux Today Logo

LinuxToday is a trusted, contributor-driven news resource supporting all types of Linux users. Our thriving international community engages with us through social media and frequent content contributions aimed at solving problems ranging from personal computing to enterprise-level IT operations. LinuxToday serves as a home for a community that struggles to find comparable information elsewhere on the web.

Property of TechnologyAdvice. © 2026 TechnologyAdvice. All Rights Reserved

Advertiser Disclosure: Some of the products that appear on this site are from companies from which TechnologyAdvice receives compensation. This compensation may impact how and where products appear on this site including, for example, the order in which they appear. TechnologyAdvice does not include all companies or all types of products available in the marketplace.