O'Reilly logo

Learning AWK Programming by Shiwang Kalkhanda

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Understanding the Apache combined log format

Before analyzing the log file of web servers, let's look at the log file format. A standard log file entry contains the following information:

%h %l %u %t “%r” %>s %b “%{Referer}i” “%{User-agent}i

Here is a description of the different fields used in the combined log format:

  • %h: IP address of the client (remote host) making the request to our site.
  • %l: RFC 1413 identity of the client ( hyphen – here indicates the requested piece of information is not available).
  • %u: User ID of the person requesting the document.
  • %t: Time when server finished processing the request. Its format is [day/month/year:hour:minute:second zone].
  • %r: Request line for the client in double quotes.
  • %>s: Status Code that the ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required