On Thu, 1 Mar 2001, Jeremy Wadsack wrote:
>
>
> Jeffrey A Schoolcraft wrote:
>
> > I'm using the TUX webserver (kernel/userspace web server) and it's log
> > file format looks like this:
> >
> > 192.168.23.112 - - Thu Mar 1 08:34:59 2001 GET index1.html HTTP/1.1 10 200
> > 192.168.23.112 - - Thu Mar 1 08:34:59 2001 GET index1.html HTTP/1.1 10 200
> > 192.168.23.111 - - Thu Mar 1 08:34:59 2001 GET index1.html HTTP/1.1 10 200
> > 192.168.23.112 - - Thu Mar 1 08:34:59 2001 GET index1.html HTTP/1.1 10 200
> >
> > I tried getting analog to parse it with this:
> > LOGFORMAT (%s %j %j %j %M %d %h:%m:%s %Y %j %r %j %b %c)
> >
> > but i get the following errors:
> > analog: analog version 4.16/Unix
> > analog: Warning C: Bad argument in configuration command: ignoring it:
> > LOGFORMAT "%S %j %j %j %M %d %h:%m:%S %Y %j %r %j %b %c"
> > analog: ...cont..: (reason: one item occurs twice in format)
>
> %S occurs twice. You need %j, since Analog doesn't track seconds.
>
And minutes is %n not %m.
> Also, you will need to use %w for whitespace instead of a space between
> the Month and day of the month (as it can be one or two spaces).
No, that should be OK. Analog understands " 1" as a two-digit number.
--
Stephen Turner http://www.statslab.cam.ac.uk/~sret1/
Statistical Laboratory, Wilberforce Road, Cambridge, CB3 0WB, England
"Your account can only be used for a single internet session at any one
time and for no more than 24 hours in any one day." (NTL terms of use)
------------------------------------------------------------------------
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]/
------------------------------------------------------------------------