On 3/5/99 10:09 AM Grahame Armitage ([EMAIL PROTECTED]) wrote:
>Hello,
>
>Please excuse me if this has been answered before (and the length of the
>enquiry) - I've been reading the NG for a while and haven't found my
>solution, yet :-( I you could help me, I'd be every so grateful.
>
>In summary, I'd like to know what the LOGFORMAT command is to read Demons
>native logformat and also how to read _all_ files within a folder on the
>Mac. Is there a site that you could point me to with the answers?
>
>Here is what Demon have to say about their native log format:
>
>195.173.128.11 194.159.66.2 - 0 [25/Feb/1998:09:16:45 +0000] "GET
>/test.html HTTP/1.0" 200 235 "Mozilla/3.0 (Win95; I)"
>"http://www.psd.demon.net/webteam/newweb/betatesters.html" "-"
>
>[where, machine 194.159.66.2 looked at /test.html on 25/Feb/1998 at 09:16
>using browser Mozilla/3.0 (Win95; I), having got there from
>http://www.psd.demon.net/webteam/newweb/betatesters.html] The numbers (200
>235) are status codes returned by the Apache web server - more details
>about these can be found at the Apache web site.]
>
>Fair enough. Now here are a few entries from my logfile
>("access_log.native.1999-02-22"):
>
>www.albertthurston.com mw-204-80-108-130.metawire.com - -
>[22/Feb/1999:23:32:33 +0000] "GET / HTTP/1.1" 200 1832 "Mozilla/4.0
>(compatible; MSIE 5.0b2; Windows 98)"
>"http://www.altavista.com/cgi-bin/query?pg=n200&kl=XX&q=Thurston+braces" "-"
>www.albertthurston.com mw-204-80-108-130.metawire.com - -
>[22/Feb/1999:23:32:34 +0000] "GET /images/atshop.jpg HTTP/1.1" 200 11350
>"Mozilla/4.0 (compatible; MSIE 5.0b2; Windows 98)"
>"http://www.albertthurston.com/" "-"
>www.albertthurston.com mw-204-80-108-130.metawire.com - -
>[22/Feb/1999:23:32:34 +0000] "GET /images/atname.jpg HTTP/1.1" 200 8964
>"Mozilla/4.0 (compatible; MSIE 5.0b2; Windows 98)"
>"http://www.albertthurston.com/" "-"
>
>Now I know that www.albertthurston.com is us!
>
>I've tried LOGFORMAT (%S %u %j [%d/%M/%Y:%h:%n:%j] "%j %r %j" %C "%B" "%f"
>%j) and lots of others, but it doesn't work. Just (%S %u %j) produce
>something, but putting the date/time in fails completely.
>
>Here is part of the error report:
>
>analog: Warning M: Logfile access_log.native contains lines with no file
> names: page counts may be low
> (For help on all errors and warnings, see docs/errors.html)
>analog: Warning M: Logfile access_log.native contains lines with no bytes:
> byte counts may be low
>analog: Warning R: Turning off empty time reports
>analog: Warning R: Turning off empty Request Report... and so forth.
>
>Sorry if this makes no sense. If someone could help me with my problems,
>I'd really be grateful.
You can use starnames (ie "*.log" to mean anything ending .log) in the
LOGFILE command inside the analog.cfg file.
I belive this log format was just covered in this group recently. Try the
following:
>> DEFAULTLOGFORMAT (%j %S %j %u [%d/%M/%Y:%h:%n:%j] "%j %r %j" %c %b "%f"
>> "%B" %j)
>> DEFAULTLOGFORMAT (%j %S %j %u [%d/%M/%Y:%h:%n:%j] "%j %r" %c %b "%f" "%B"
>> %j)
>> DEFAULTLOGFORMAT (%j %S %j %u [%d/%M/%Y:%h:%n:%j] "%r" %c %b "%f" "%B" %j)
>>
>> LOGFORMAT (%j %S %j %u [%d/%M/%Y:%h:%n:%j] "%j %r %j" %c %b "%f" "%B" %j)
>> LOGFORMAT (%j %S %j %u [%d/%M/%Y:%h:%n:%j] "%j %r" %c %b "%f" "%B" %j)
>> LOGFORMAT (%j %S %j %u [%d/%M/%Y:%h:%n:%j] "%r" %c %b "%f" "%B" %j)
>>
>> Each of those six FORMAT
>> commands should be on one line (in case the mail system split them up you
>> will have to put them back together).
Good Luck
Jason
-----------------
[EMAIL PROTECTED]
-----------------
Dr. Seuss books . . . can be read and enjoyed on several levels. For
example, 'One Fish Two Fish, Red Fish Blue Fish' can be deconstructed
as a searing indictment of the narrow-minded binary counting system.
-- Peter van der Linden, Expert C Programming, Deep C Secrets
--------------------------------------------------------------------
This is the analog-help mailing list. To unsubscribe from this
mailing list, send mail to [EMAIL PROTECTED]
with "unsubscribe analog-help" in the main BODY OF THE MESSAGE.
--------------------------------------------------------------------