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.

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).
-- 

Jeremy Wadsack
Wadsack-Allen Digital Group

------------------------------------------------------------------------
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]/
------------------------------------------------------------------------

Reply via email to