unix web hosting
Three directive definitions, when together, define what is known as the "Separate Log Format" or "Common Log Format" for storing resource request information. The Common Log Format stores the following requested resource information in separate log files:
  1. Referrer information
  2. Browser information
  3. Agent information

Note: The default format is the combined log format, which we recommend for web server efficiency and log file analysis effectively.

Switching from Common Log Format to Combined Log Format
  1. From your httpd.conf file, "comment out" the AgentLog and ReferrerLog directives by placing a pound sign "#" in front of the two directive lines, or
  2. Remove the two directive lines (not recommended).
  3. Include a special LogFormat directive definition line in front of your current TransferLog directive line. See the example below:

    ErrorLog logs/error_log
    LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referrer}i\" \"%{User-Agent}i\""
    TransferLog logs/access_log
    # AgentLog logs/agent_log
    # ReferrerLog logs/referrer_log

Note: There may be a LogFormat directive like the one above located in your server configuration file. If the line is commented out, then uncomment the line by removing the leading pound sign ("#").

After you have made the modifications, take a look at your transfer log file with the tail command. Each entry in your transfer log file should now look something like this:

some.remote.host - - [19/Aug/1998:13:48:56 –0600]
"GET /index.php HTTP/1.0" 200 4817
"http://another.remote.host/path/info/document.html"
"Mozilla/3.01 (X11; I; BSD/OS 2.0 i386)"

Turning Off Specific Log Files

  1. Comment the line out by using by preceding the line with a "#" sign, or
  2. Specify the special file /dev/null as the target for the Log directives. For example:

    ErrorLog /dev/null
    TransferLog /dev/null
    AgentLog /dev/null
    ReferrerLog /dev/null

Note: If you are going to turn off specific log files, we recommend doing so by using the first method described above, since the second method still requires Apache to create the log files, which are then immediately deleted.

Hosting  ::  Web Design  :: Server Administration  ::  Tech Support  ::  Contacts
Data Centers  ::  Tier I Global IP Network  ::  SLA/Contracts  ::  Search  ::  Account Login