Re: LogFormat help request

"Aengus" <[email protected]>
Newsgroups gmane.comp.web.analog.general
Message-ID <011901c86cf1$4d53b9f0$c2041fac@WC515ALawlo>
Roberto Hoyle <[email protected]> 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

+------------------------------------------------------------------------
|  TO UNSUBSCRIBE from this list:
|    http://lists.meer.net/mailman/listinfo/analog-help
|
|  Analog Documentation: http://analog.cx/docs/Readme.html
|  List archives:  http://www.analog.cx/docs/mailing.html#listarchives
|  Usenet version: news://news.gmane.org/gmane.comp.web.analog.general
+------------------------------------------------------------------------
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.