On Mon, 23 Jun 2003 [EMAIL PROTECTED] wrote:
> Hello,
>
> I have a custom logformat statement in my httpd.conf file for Apache, and I
> can't seem to get Analog to read it.
>
> httpd.conf reads:
> LogFormat "[%{%m/%d %T}t] %Ts %h %l %u \"%r\" %>s %b" common
>
> A sample of my access_log file:
> [06/19 09:26:46] 0s 10.66.110.21 - - "GET /media/g_blank.gif HTTP/1.1" 200 70
>
> I've tried seemingly every permutation for the LOGFORMAT line in analog.cfg,
> but I can't get it to work. The errors.txt keeps telling me it only sees
> corrupt lines. In my analog.cfg, I have:
> APACHELOGFORMAT ([%m/%d %h:%n:%j] %Ts %s %l %u \"%r\" %>s %b)
>
You have two errors. Firstly, you've mixed APACHELOGFORMAT and analog's
regular LOGFORMAT in a strange way -- your format line contains half of each.
But more seriously, you haven't logged the year. This is a show-stopper:
how's analog supposed to know which date the requests occurred on?
--
Stephen Turner, Cambridge, UK http://homepage.ntlworld.com/adelie/stephen/
"The question of whether a computer can think is no more interesting than
the question of whether a submarine can swim." (Edsger W. Dijkstra)
+------------------------------------------------------------------------
| TO UNSUBSCRIBE from this list:
| http://lists.isite.net/listgate/analog-help/unsubscribe.html
|
| Digest version: http://lists.isite.net/listgate/analog-help-digest/
| Usenet version: news://news.gmane.org/gmane.comp.web.analog.general
| List archives: http://www.analog.cx/docs/mailing.html#listarchives
+------------------------------------------------------------------------