Please excuse this post if the answer is in the archive, but I'm afraid
I can't find it...
Aengus very kindly put me straight last week on a problem I had with
being unable to open the referer log, but, having followed his advice, I
now find that analog is generating more detailed error messages which
show that my problem is with the old chesnut, Apache logformat.
To recap:
I want to have a referer log for my virtual hosts.
Here is an example VirtualHost entry from my httpd.conf:
<VirtualHost 208.48.185.175>
ServerName www.images-magazine-uk.com
DocumentRoot /home/httpd/html/imagesonline
ServerAdmin [EMAIL PROTECTED]
ErrorLog logs/images-magazine-uk.com-error_log
TransferLog logs/images-magazine-uk.com-access_log
CustomLog logs/images-magazine-uk.com-referer_log "%{referer}i"
</VirtualHost>
Apache seems to like this and creates the appropriate referer log and
writes to it.
This is the logformat section of my httpd.conf:
==================================================
# 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
# The location of the access logfile (Common Logfile Format).
# If this does not start with /, ServerRoot is prepended to it.
CustomLog logs/access_log common
# If you would like to have an agent and referer logfile uncomment the
# following directives.
CustomLog logs/referer_log referer
CustomLog logs/agent_log agent
# If you prefer a single logfile with access, agent and referer
information
# (Combined Logfile Format) you can use the following directive.
#CustomLog logs/access_log combined
=============================================
Analog, however, cannot auto-detect the format of the referer log if I
run without a LOGFORMAT line. (it picks up the access log OK)
I have tried several different APACHELOGFORMAT statements from the
archive in my analog.cfg (yes, BEFORE the LOGFILE lines:-) but they all
give errors either saying 'large number of corrupt lines' or incorrect
syntax in logformat.
So, my short question is: what is the definitive APACHELOGFORMAT or
LOGFORMAT entry for Analog to pick up my referer logs?? Did anyone ever
get a final answer on this?
Help!!
Peter Rose
London UK
"I don't like your fashion business mister"
- Leonard Cohen / First We Take Manhattan
------------------------------------------------------------------------
This is the analog-help mailing list. To unsubscribe from this
mailing list, send mail to [EMAIL PROTECTED]
with "unsubscribe" in the main BODY OF THE MESSAGE.
List archived at http://www.mail-archive.com/[email protected]/
------------------------------------------------------------------------