Re: LogFormat in analog.cfg broken

"Ulf Hofemeier" <ulf-vqempv/qbUL2fBVCVOL8/[email protected]> Thu, 02 Oct 2008 09:43:24 -0600
Newsgroups gmane.comp.web.analog.general
Message-ID <[email protected]>
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
>>
>> In analog.cfg I use:
>>
>> LOGFORMAT (%h "%u" [%d/%M/%Y:%h:%n:%j] "%f" %c %b)
>>
>> which doesn't work (resulting in corrupt logfile lines)
>
>
> Have you tried just using your Apache command directly?
>
> APACHELOGFORMAT ("%h %l \"%u\" %t \"%r\" %>s %b \"%{Referer}i\"  
> \"%{User-Agent}i\"")
>
> If that doesn't work, can you post a couple of actual lines from  
> your logfile. Your Apache statement has bytes before the Referrer,  
> but your Analog statement has the bytes at the end, and doesn't even  
> mention the request.
>
> 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"

Thank you for helping me.

+------------------------------------------------------------------------
|  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
+------------------------------------------------------------------------