1. In Apache's httpd.conf , the LogFormat specifies one or more formats with a nickname for each (a). The LogFormat doesn't create a log file; CustomLog creates a log file by using a format nickname specified in a LogFormat command (b). Or, CustomLog can specify an explicit format string without a nickname (c). Does your CustomLog command use a nickname from the list of LogFormats that you mentioned? If yes, that's good. If not, what does your CustomLog command specify?
(a) LogFormat "%h %l %u %t \"%r\" %>s %b" common (b) CustomLog logs/access_log common (c) CustomLog logs/access_log "%h %l %u %t \"%r\" %>s %b"
2. Analog's documentation reveals that most people don't need to specify a log format because Analog can detect the format automatically. Have you tried running Analog without specifying a format? (http://www.analog.cx/docs/logfmt.html)
3. Analog's documentation mentions a command that
is specifically for Apache (APACHELOGFORMAT).
Have you tried it? Maybe like this? (Assumes that your
Apache CustomLog command uses "combined" nickname.)
APACHELOGFORMAT ("%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\"")
or
APACHELOGFORMAT (%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\")
or
APACHELOGFORMAT (%h %l %u %t \"%r\" %s %b \"%{Referer}i\" \"%{User-Agent}i\")
(http://www.analog.cx/docs/logfmt.html)
HTH,
-- Duke
Pelle Andersson wrote:
Hi Analog List!
I cant see any of the refering sites in my report.html from latest Analog.
This is my Apache2 conf for logging:
------------ 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 ------------
This is found in Apache logfile:
------------ 192.168.135.205 - - [24/Mar/2004:13:03:14 +0100] "GET / HTTP/1.1" 200 32979 "http://a-refering-site.xyz/a-pointing_doc.html" "Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; .NET CLR 1.1.4322)" ------------
My Analog conf:
------------ LOGFORMAT COMBINED LOGFILE /var/log/httpd-access.log LOGFILE /var/log/httpd-access.log.*.gz ------------
Thanks in advance for any input to a solution. Best regards
+------------------------------------------------------------------------ | TO UNSUBSCRIBE from this list: | http://lists.isite.net/listgate/analog-help/unsubscribe.html | | Digest version: http://lists.isite.net/listgate/analog-help-digest/ | Usenet version: news://news.gmane.org/gmane.comp.web.analog.general | List archives: http://www.analog.cx/docs/mailing.html#listarchives +------------------------------------------------------------------------