
jason at summary
Feb 20, 1999, 11:20 AM
Post #5 of 6
(195 views)
Permalink
|
>On 2/20/99 12:30 PM GS Gosall (gsg [at] gosall) wrote: > >>Thanks for your prompt reply. At the end of this message I've posted lines >>from two parts of the log file. >> >>Gurpal. >> >>> >>> >Does anyone have the correct LOGFORMAT command to deal with >>> Demon Internet's >>> >Native Log Format? Thanks. >>> >>> Could you post the first several lines of the log to the list? Then we >>> should be able to figure out a LOGFORMAT command for you. >>> >>> Jason >> >>cgi.www.last-minute-software.co.uk userc478.uk.uudial.com - - >>[20/Feb/1999:09:20:37 +0000] "GET >>/cgi-bin/www.last-minute-software.co.uk/Count.cgi?df=datafile HTTP/1.1" 200 >>2134 "Mozilla/4.0 (compatible; MSIE 4.01; MSN 2.5; Windows 98)" >>"http://www.last-minute-software.co.uk/home.htm" >>"MC1=GUID=b100330e73d211d283a200805fe2135d; >>SITESERVER=ID=b100330e73d211d283a200805fe2135d; RMID=c1954ec736b23030" > >Ah, this is NCSA Combined format with the cookie field added to the end in >quotes. You can use the following LOG_FORMAT lines to handle this: > >LOG_FORMAT (%S %j %u [%d/%M/%Y:%h:%n:%j] "%j %r %j" %c %b "%f" "%B" %j) >LOG_FORMAT (%S %j %u [%d/%M/%Y:%h:%n:%j] "%j %r" %c %b "%f" "%B" %j) >LOG_FORMAT (%S %j %u [%d/%M/%Y:%h:%n:%j] "%r" %c %b "%f" "%B" %j) > >That will throw away the cookie information. Analog doesn't directly >support cookies but some people use the user report as a cookie report. In >that case you would want: > >LOG_FORMAT (%S %j %j [%d/%M/%Y:%h:%n:%j] "%j %r %j" %c %b "%f" "%B" "%u") >LOG_FORMAT (%S %j %j [%d/%M/%Y:%h:%n:%j] "%j %r" %c %b "%f" "%B" "%u") >LOG_FORMAT (%S %j %j [%d/%M/%Y:%h:%n:%j] "%r" %c %b "%f" "%B" "%u") Oops, I had that wrong. The server name is also added to the front, try these: LOG_FORMAT (%j %S %j %u [%d/%M/%Y:%h:%n:%j] "%j %r %j" %c %b "%f" "%B" %j) LOG_FORMAT (%j %S %j %u [%d/%M/%Y:%h:%n:%j] "%j %r" %c %b "%f" "%B" %j) LOG_FORMAT (%j %S %j %u [%d/%M/%Y:%h:%n:%j] "%r" %c %b "%f" "%B" %j) for cookies: LOG_FORMAT (%j %S %j %j [%d/%M/%Y:%h:%n:%j] "%j %r %j" %c %b "%f" "%B" "%u") LOG_FORMAT (%j %S %j %j [%d/%M/%Y:%h:%n:%j] "%j %r" %c %b "%f" "%B" "%u") LOG_FORMAT (%j %S %j %j [%d/%M/%Y:%h:%n:%j] "%r" %c %b "%f" "%B" "%u") Jason ----------------- Jason [at] Summary ----------------- 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 analog-help-request [at] lists with "unsubscribe analog-help" in the main BODY OF THE MESSAGE. --------------------------------------------------------------------
|