[analog-help] LogFormat help request

Aengus analog07 at eircom.net
Mon Feb 11 13:01:41 PST 2008


Roberto Hoyle <Roberto.J.Hoyle at dartmouth.edu> wrote:
> 
> DEFAULTLOGFORMAT ( [%Y-%m-%d %h:%n:%j] %v:%j %s:%j %j %j %Tms %c %j %j
> %b %j "%j" "%r" "%j" "%q" "%f" "%B" "%j" "%j" )
> 
> 
> This is a sample of the log:
> 
> [2008-02-11 10:50:02 EST] library.dartmouth.edu:80 130.189.217.32:-
> HTTP/1.1 GET 28505ms 200 200 + 270629 11428 "GET /se
> arch/search360/search360.js HTTP/1.1" "/data/websites/diglib/search/
> search360/search360.js" "/search/search360/search360
> .js" "" "http://www.dartmouth.edu/~biomed/" "Mozilla/4.0 (compatible;
> MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 1.1.4322;
> .NET CLR 2.0.50727)" "-" "-"

Your DEFAULTLOGFORMAT starts with a space (everything within the parentheses is important), your logfile doesn't.

If you take the spaces out at the beinning and end of the LOGFORMAT, Analog will interpret the sample lines you provided.

LOGFORMAT ([%Y-%m-%d %h:%n:%j] %v:%j %s:%j %j %j %Tms %c %j %j %b %j "%j" "%r" "%j" "%q" "%f" "%B" "%j" "%j")

Aengus



More information about the analog-help mailing list