combined2dlf1
Convert combined log file to dlf
Usage
combined2dlf file
Overview
combined2dlf converts web server log files in the combined log format to the www DLF. The combined (also known as extended common log format) log format was first implemented in the NSCA httpd webs server but is now supported in many web servers. Apache can be configured to use that log format.
Combined log format
The combined log format is an extension to the Common Log Format; see common2dlf(1). It adds two fields to the end of the line:
"referer" "useragent"
- referer
-
The content of the Referer request's header. This usually reflects the page where the user was before that request.
- useragent
-
The content of the User-Agent request's header. This usually reflects the browser that the user is using.
Log example :
127.0.01 - - [11/03/2001 12:12:01 -0400] "GET / HTTP/1.0" 200 513 "-" "Mozilla/5.0"dsl1.myprovider.com - francis [11/03/2001 12:14:01 -0400] "GET /secret/ HTTP/1.0" 200 1256 "http://www.example.com/index.html" "Mozilla/5.0"
Examples
To process a log as produced in the combined logformat:
$ combined2dlf < combined.log
combined2dlf will be rarely used on its own, but is more likely called by lr_log2report:
$ lr_log2report combined < /var/log/httpd/combined.log
Version
$Id: combined2dlf.in,v 1.10 2006/07/23 13:16:36 vanbaal Exp $
Releases
7 releases since Debian 3.0 (Woody); the text changed 6 times.