KnowledgeBase - How do I configure the Apache Extended Log File Format?
Article

How do I configure the Apache Extended Log File Format?

« Go Back
Products
Webtrends Legacy Products
Question
How do I configure the Apache Extended Log File Format?
Answer
For products:
Webtrends Enterprise 7.0
Webtrends Professional 7.0
Webtrends Small Business 7.0
Webtrends Analysis Suite 7.0x
Webtrends Intelligence Suite 4.0x
Webtrends Intelligence Suite 2.0x
Webtrends Log Analyzer Advanced 8.X
Webtrends Log Analyzer 8.X
Webtrends Log Analyzer 7.0x
Webtrends Reporting Center 6.X
Webtrends Reporting Center 5.0x
Webtrends Reporting Center 4.0x

Last modified: 1/1/2011

Introduction:
The log file format provided by default in the Apache httpd.conf file is called "combined," and WebTrends is fully compatible with this standard extended log file format. To enable the Apache Extended "combined" log file format:

1. Stop the httpd service.

2. Edit the httpd.conf file for the Apache install on which your site is hosted (you may have multiple services running). This file is normally located in the /etc/httpd/conf/ directory.

3. Comment out the following line by putting a pound sign (#) in front of it:

CustomLog [your log location path] custom

If you have already altered the standard common format then you may have your own format defined for "common." Comment out the format that you are using.

4. Remove the pound sign (#) in front of the following line:

CustomLog logs/access_log combined

Note: You may change the log location in this same line.

If you have also edited the definition for the combined log file format that we will be adding in step 4) then you can redefine the format back to its original as follows:

LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent} i\"\"%{Cookie}i\""

Below is a sample of what the Apache extended log format looks like:

212.959.120.150 - - [31/Jul/1999:16:58:45 -0400] "GET /last5.gif HTTP/1.1" 200 8521 "http://www.une.org/usnews/home.htm" "Mozilla/4.0 (compatible; MSIE 4.01; Windows 95; Toshiba Corporation)" "cookie_id=999999"

Further information:
For more about the Apache Web server, please call Apache technical support or consult the reading material that shipped with the product.
Information
 
Was this article helpful?

Please tell us how we can make this article more useful.

Characters Remaining: 255