From: "Valeria Cavallini" <[EMAIL PROTECTED]>
> I've tried to analyse some logs with this format, but analog give me > always the same 2 errors: > > ./analog: Warning C: Bad argument in configuration command: ignoring it: > LOGFORMAT "%S %W\t -%W\t %Y-%m-%d \t %h%n%j%r \t %c%b%f" Without trying it, I don't think that logformat is going to work. I'm not sure that you need a %W with your \t, and you haven't told Analog how to tell where the request starts - %h%n%j%r can cover a multitude of sins! Try %h%n%j\t%r instead. Actually, that won't work, because you want to ignore the GET too. Try %h:%n:%j\t%j\t%r. The same goes for %c%b%f - how is Analog supposed to tell where %b ends and %f starts? In fact, I just tried your LOGFORMAT, and Analog 5.03 gives this error: analog: ...cont..: (reason: an unterminated string is present) And the problem is that "%h%n%j%r" doesn't give Analog anyway to terminate the %j junk. I'd try this logformat: LOGFORMAT (%S\t-\t%Y-%m-%d\t%h:%n:%j\t%j\t%r\t%c\t%b\t%f) > ./analog: Warning D: LOGFORMAT in configuration file config_finanza2.cfg > with > no subsequent LOGFILE > (I've put the log file next the logformat command) The "Bad argument in configuration command" error suggests that you might mean this literally. Put the LOGFILE on the line after the LOGFORMAT command(s). LOGFORMAT (%S\t-\t%Y-%m-%d\t%h:%n:%j\t%j\t%r\t%c\t%b\t%f) LOGFILE mylog.log That should do the trick. Aengus +------------------------------------------------------------------------ | 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 +------------------------------------------------------------------------
