Re: LogFormat in analog.cfg broken
"Aengus" <[email protected]> Thu, 2 Oct 2008 12:23:41 -0400
| Newsgroups | gmane.comp.web.analog.general |
|---|---|
| Message-ID | <BB2558E6E2A9497285C2840BB01B283E@WC515ALawlo> |
Ulf Hofemeier <ulf-vqempv/qbUL2fBVCVOL8/[email protected]> wrote: > Quoting Aengus <[email protected]>: > >> Ulf Hofemeier <ulf-vqempv/qbUL2fBVCVOL8/[email protected]> wrote: >>> Hi folks: >>> >>> I could use some help figuring out the correct syntax for a new >>> LogFormat line in my analog.cfg file after changing the LogFormat >>> settings for Apache a few weeks ago. >>> >>> In my httpd.conf I have the following line: >>> >>> LogFormat "%h %l \"%u\" %t \"%r\" %>s %b \"%{Referer}i\" >>> \"%{User-Agent}i\"" combined >>> >> >> Have you tried just using your Apache command directly? >> >> APACHELOGFORMAT ("%h %l \"%u\" %t \"%r\" %>s %b \"%{Referer}i\" >> \"%{User-Agent}i\"") >> >> Aengus > > > Hi Aengus: > > I tried APACHELOGFORMAT in my analog.cfg without success (still > corrupt logfile lines). > > My Apache access_log looks like this: > > 1.2.3.4 - "-" [02/Oct/2008:09:31:33 -0600] "GET /images/black.gif > HTTP/1.1" 200 43 "http://www.unm.edu/" "Mozilla/5.0 (Windows; U; > Windows NT 5.1; en-US; rv:1.9.0.3) Gecko/2008092417 Firefox/3.0.3" > 1.2.3.4 - "-" [02/Oct/2008:09:31:33 -0600] "GET /images/white.gif > HTTP/1.1" 200 43 "http://www.unm.edu/" "Mozilla/5.0 (Windows; U; > Windows NT 5.1; en-US; rv:1.9.0.3) Gecko/2008092417 Firefox/3.0.3" My mistake - I forgot to strip the double-quotes from the start and end of your line from the Apache entry. APACHELOGFORMAT (%h %l \"%u\" %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\") This works for the sample lines that you posted. 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 +------------------------------------------------------------------------