Internet.com ISP-Planet
Search ISP-Planet


Search internet.com
internet.com

IT
Developer
Internet News
Small Business
Personal Technology
International

Search internet.com
Advertise
Corporate Info
Newsletters
Tech Jobs
E-mail Offers

internet.commerce
Partner With Us














ISP Equipment

ISPPlanet Primer: Analyzing Cache Logs

Our primer offers an overview of Common and Squid log formats and the tools you may use to work with them.

by Lisa Phifer
VP Core Competence, Inc.
[April 19, 2000]
Email a Colleague

During our ISP-Planet cache review series, we pored through dozens of access logs generated by six different caches. The products we tested generated access logs in two popular formats: the Common Log Format and the native Squid log format. Cache access logs can provide a wealth of information. Here, we offer a quick beginner's primer on cache log analysis.

Common Log Format
The NCSA common log format was long ago designed for the CERN HTTPd and is commonly used by web servers like Apache. Some caches, including NICS, CacheFlow, and squid, can generate access logs in this format. Each entry contains basic information about one HTTP request and its result. Records are composed of the following space-delimited fields, with a single dash placeholder for each absent value:
 
hostFully-qualified domain name or IP address of the requesting client
ident The RFC 931 identity of the client (if returned by identd)
authuser The username (for authenticated requests on password-protected domains)
timestamp Time of request [DD/MMM/YYYY:hh:mm:ss + zzzz], surrounded by brackets
request The HTTP request sent by the client, surrounded by double quotes
status The HTTP status code returned by the server
bytes The number of content bytes returned to client, without HTTP header

Record Format

host ident authuser [timestamp] "request" status bytes

Examples

192.168.1.142 — [22/Dec/1999:19:41:30 -0500] "GET http://www.corecom.com/ HTTP/1.0" 200 1722

192.168.1.142 — [22/Dec/1999:19:42:45 -0500] "GET http://www.corecom.com/ HTTP/1.0" 304 177

This example illustrates two HTTP GET requests made on http://www.corecom.com by a client browser running on 192.168.1.142. For the first request, the cache successfully retrieved a 1722 byte object from the origin server and returned it to the client. When this same object was requested again "if modified since", it was found to be in the cache and fresh. For further discussion, see HTTP status codes (below).

Some web servers and caches append other fields to the common log record. The extended log format used by some web servers adds referrer and user-agent fields. Squid v2.3 adds its own response and hierarchy codes (e.g., TCP_MISS:DIRECT) when emulating the common log format.

Introduction/Common Log Format

 

ISP News
IDC: Microsoft's Yahoo Deal Could be a Big Hit
Ballmer Fills in 'Software-Plus-Services' Plan
Report: Enterprise Search Will Top $1 Billion by 2010

More >


ISP Glossary
Find an ISP Term

Newsletters!
ISP-Planet Weekly


Best of ISP-Planet

 

Feedback


Advertising inquiry? Click here!

ISP-Planet's RSS feed



JupiterOnlineMedia

internet.comearthweb.comDevx.commediabistro.comGraphics.com

Search:

Jupitermedia Corporation has two divisions: Jupiterimages and JupiterOnlineMedia

Jupitermedia Corporate Info


Legal Notices, Licensing, Reprints, & Permissions, Privacy Policy.

Advertise | Newsletters | Tech Jobs | Shopping | E-mail Offers

Solutions
Whitepapers and eBooks
IBM Whitepaper: Innovative Collaboration to Advance Your Business
Internet.com eBook: Real Life Rails
Avaya Article: Call Control XML - Powerful, Standards-Based Call Control
Internet.com eBook: The Pros and Cons of Outsourcing
Go Parallel Article: Scalable Parallelism with Intel(R) Threading Building Blocks
Internet.com eBook: Best Practices for Developing a Web Site
IBM CXO Whitepaper: The 2008 Global CEO Study "The Enterprise of the Future"
Avaya Article: Call Control XML in Action - A CCXML Auto Attendant
Go Parallel Article: James Reinders on the Intel Parallel Studio Beta Program
IBM CXO Whitepaper: Unlocking the DNA of the Adaptable Workforce--The Global Human Capital Study 2008
Adobe Acrobat Connect Pro: Web Conferencing and eLearning Whitepapers
Go Parallel Article: Getting Started with TBB on Windows
HP eBook: Storage Networking , Part 1
MORE WHITEPAPERS, EBOOKS, AND ARTICLES
Webcasts
Go Parallel Video: Intel(R) Threading Building Blocks: A New Method for Threading in C++
HP Video: Is Your Data Center Ready for a Real World Disaster?
Microsoft Partner Portal Video: Microsoft Gold Certified Partners Build Successful Practices
HP On Demand Webcast: Virtualization in Action
Go Parallel Video: Performance and Threading Tools for Game Developers
Rackspace Hosting Center: Customer Videos
Intel vPro Developer Virtual Bootcamp
HP Disaster-Proof Solutions eSeminar
HP On Demand Webcast: Discover the Benefits of Virtualization
MORE WEBCASTS, PODCASTS, AND VIDEOS
Downloads and eKits
Microsoft Download: Silverlight 2 Software Development Kit Beta 2
30-Day Trial: SPAMfighter Exchange Module
Red Gate Download: SQL Toolbelt
Iron Speed Designer Application Generator
Microsoft Download: Silverlight 2 Beta 2 Runtime
MORE DOWNLOADS, EKITS, AND FREE TRIALS
Tutorials and Demos
IBM IT Innovation Article: Green Servers Provide a Competitive Advantage
Microsoft Article: Expression Web 2 for PHP Developers--Simplify Your PHP Applications
Featured Algorithm: Intel Threading Building Blocks - parallel_reduce
MORE TUTORIALS, DEMOS AND STEP-BY-STEP GUIDES