Jeremy.
I originally had my logfile named as 'access_log.log' so the file name was
correct but following your query, thinking that perhaps analog doesn't like
the name, I have renamed it back to 'logfile.log'. I have also examined more
thoroughly the log file and found more than the type originally stated.
There are three different types as per these samples (all on one line each):
195.14.134.230 - - [16/Apr/2001:04:05:13 -0600] "GET / HTTP/1.1" "-" 200
12287
195.14.134.230 - - [16/Apr/2001:04:05:47 -0600] "GET
/images/menu/original.gif HTTP/1.1"
"http://www.stitchingthesquare.com.au/papillon.htm" 200 2703
195.14.134.230 - - [16/Apr/2001:04:05:09 -0600] "GET /papillon.htm HTTP/1.1"
"http://www.google.com/search?q=dogs+papillon&hl=en&lr=&safe=off&start=30&sa
=N" 200 12972
I have re-examined the LOGFORMAT syntax I was using and have tried these:
LOGFORMAT (%S %j %u [%d/%M/%Y:%h:%n:%j%j] "%j%w%r%wHTTP%j" "%j" %c %b)
LOGFORMAT (%S %j %u [%d/%M/%Y:%h:%n:%j%j] "%j%w%r" "%j" %c %b)
LOGFORMAT (%S %j %u [%d/%M/%Y:%h:%n:%j%j] "%j%w%r%wHTTP%j" "%f" %c %b)
LOGFORMAT (%S %j %u [%d/%M/%Y:%h:%n:%j%j] "%j%w%r" "%f" %c %b)
LOGFORMAT (%S %j %u [%d/%M/%Y:%h:%n:%j%j] "%j%w%r%wHTTP%j" "%f%q" %c %b)
LOGFORMAT (%S %j %u [%d/%M/%Y:%h:%n:%j%j] "%j%w%r" "%f%q" %c %b)
The first two LOGFORMATS now cope with the first line no problem but I now
cannot get the next two to work using the syntax shown et they appear to be
correct. These lines report the same error messages as below:
C:\ANALOG\ANALOG\ANALOG.EXE: Warning C: Bad argument in configuration
command:
ignoring it:
LOGFORMAT (%S %j %u [%d/%M/%Y:%h:%n:%j%j] "%j%w%r%wHTTP%j" "%f" %c %b)
C:\ANALOG\ANALOG\ANALOG.EXE: ...cont..: (reason: an unterminated string is
present)
C:\ANALOG\ANALOG\ANALOG.EXE: Warning C: Bad argument in configuration
command:
ignoring it:
LOGFORMAT (%S %j %u [%d/%M/%Y:%h:%n:%j%j] "%j%w%r" "%f" %c %b)
C:\ANALOG\ANALOG\ANALOG.EXE: ...cont..: (reason: an unterminated string is
present)
C:\ANALOG\ANALOG\ANALOG.EXE: Warning C: Bad argument in configuration
command:
ignoring it:
LOGFORMAT (%S %j %u [%d/%M/%Y:%h:%n:%j%j] "%j%w%r%wHTTP%j" "%f%q" %c %b)
C:\ANALOG\ANALOG\ANALOG.EXE: ...cont..: (reason: an unterminated string is
present)
C:\ANALOG\ANALOG\ANALOG.EXE: Warning C: Bad argument in configuration
command:
ignoring it:
LOGFORMAT (%S %j %u [%d/%M/%Y:%h:%n:%j%j] "%j%w%r" "%f%q" %c %b)
C:\ANALOG\ANALOG\ANALOG.EXE: ...cont..: (reason: an unterminated string is
present)
The error file basically reports this warning message:
Warning F: Can't auto-detect format of logfile
logfile.log: ignoring it
Are you or anyone else able to point me in the right direction as to what
constitutes the "unterminated string present"? The syntax looks correct
according to the manual but obviously, I've missed something.
Kind regards
Haydn
----- Original Message -----
From: Jeremy Wadsack <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Saturday, April 28, 2001 2:45 AM
Subject: Re: [analog-help] Problem Logfile format
>
>
> StitchingtheSquare wrote:
>
> > Jeremy,
> > Many thanks for your assistance. I now have analog working using these
> > LOGFORMATS but there is still clearly a problem - I still have 0
successful
> > requests. With DEBUG ON, I now get the message:
> > Reading logfiles:
> > C:\analog\access_log.log
> > Warning: cannot open that file
> > Logfile format:
> > <Automatic detection>\n
> > I have the error producing to file which reads:
> > F: Closing configuration file analog.cfg
> >
> > I have studied the manual, particularly the section on Warning and
Errors
> > and have tried the suggestion of putting the LOGFORMAT command in
analog.cfg
> > after the LOGFILE command but it makes no difference. I take it the
error is
> > producing because I have specified my own LOGFORMAT. Any suggestions
what I
> > might try now?
>
> Analog "cannot open that file." Maybe you have the wrong name
> ("C:\analog\access_log.log") in your configuration?
>
>
>
> --
>
> Jeremy Wadsack
> Wadsack-Allen Digital Group
>
> +------------------------------------------------------------------------
> | This is the analog-help mailing list. To unsubscribe from this
> | mailing list, go to
> | http://lists.isite.net/listgate/analog-help/unsubscribe.html
> |
> | List archives are available at
> | http://www.mail-archive.com/[email protected]/
> | http://lists.isite.net/listgate/analog-help/archives/
> | http://www.tallylist.com/archives/index.cfm/mlist.7
> +------------------------------------------------------------------------
>
+------------------------------------------------------------------------
| This is the analog-help mailing list. To unsubscribe from this
| mailing list, go to
| http://lists.isite.net/listgate/analog-help/unsubscribe.html
|
| List archives are available at
| http://www.mail-archive.com/[email protected]/
| http://lists.isite.net/listgate/analog-help/archives/
| http://www.tallylist.com/archives/index.cfm/mlist.7
+------------------------------------------------------------------------