Apache Server configuration support - Log Files Problem

This is Interesting: Free IT Magazines  
Home > Archive > Apache Server configuration support > July 2006 > Log Files Problem





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author Log Files Problem
StevePBurgess@gmail.com

2006-07-25, 1:27 pm

Here are two snippets from my apache httpd.conf file:

#
# The following directives define some format nicknames for use with
# a CustomLog directive (see below).
#
LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\"
\"%{User-Agent}i\"" combined
LogFormat "%h %l %u %t \"%r\" %>s %b" common
LogFormat "%{Referer}i -> %U" referer
LogFormat "%{User-agent}i" agent


.....


#
# For a single logfile with access, agent, and referer information
# (Combined Logfile Format), use the following directive:
#
CustomLog logs/access_log combined



which I gather means I will get a combined access log file including
referrer and user agent amongst the usual data.

Having examined the log file, I seem only to be getting the "common"
log format recorded.

Any ideas?

Steve

Davide Bianchi

2006-07-25, 1:27 pm

On 2006-07-25, StevePBurgess@gmail.com <StevePBurgess@gmail.com> wrote:
> CustomLog logs/access_log combined
>
> which I gather means I will get a combined access log file including
> referrer and user agent amongst the usual data.
> Having examined the log file, I seem only to be getting the "common"
> log format recorded.


Maybe you have multiple 'CustomLog' directives in your configuration file.
Davide

--
Windows is a pane in the ASCII.
StevePBurgess@gmail.com

2006-07-26, 1:29 pm


Davide Bianchi wrote:

> Maybe you have multiple 'CustomLog' directives in your configuration file.



Hmmm... I checked but there aren't multiple CustomLog directives.

There is an include command to include a file called conf/vhost.conf
but this has no entries relating to the CustomLog - and contains
settings for each of the domains on the server (i.e. where the log is
stored, but not the type of log that is created).

Steve

Davide Bianchi

2006-07-26, 1:29 pm

On 2006-07-26, StevePBurgess@gmail.com <StevePBurgess@gmail.com> wrote:
> but this has no entries relating to the CustomLog - and contains
> settings for each of the domains on the server (i.e. where the log is
> stored, but not the type of log that is created).


Here you go. If you redefine the log destination, without specifying HOW it
is created, it will pick the default format, that ain't the 'Custom' one.

Davide

--
Double your disk space - delete Windows!
-- Albert Dorofeev
Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com