On Monday, October 31, 2005 5:47 PM [EDT],
simon coxall <[EMAIL PROTECTED]> wrote:
> Analog is refusing to see my apache logfile. I have
> tried not specifying a format. My httpd.conf looks
> like:
>
> LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\"
> \"%{User-Agent}i\"" combined
> LogFormat "%h %l %u %t \"%r\" %>s %b" common
> LogFormat "%{Referer}i -> %U" referer
> LogFormat "%{User-agent}i" agent
>
...
> CustomLog /var/log/apache/access_log common
...
> CustomLog /var/log/apache/access_log combined
You have 2 CustomLog statements. As this is an Analog list, and not an
Apache list, I don't know off hand what your logfile is going to look like,
and you didn't include an example of your logfile, so I'd suggest that you
add both of these sttements to your .cfg file.
APACHELOGFORMAT (%h %l %u %t \"%r\" %>s %b \"%{Referer}i\"
\"%{User-Agent}i\")
APACHELOGFORMAT (%h %l %u %t \"%r\" %>s %b)
If that doesn't work, post an example of 2 or 3 lines from your logs.
> I don't really know where to go from here. If I
> specify APACHELOGFORMAT with the combined or common
> lines from above, I still get errors. Apparently
> analog doesn't like '%t' in a line. Anyway, the error
> output is this:
>
> analog: analog version 6.0/Unix
> analog: Warning L: Large number of corrupt lines in
> logfile
> /var/log/apache/access_log: turn debugging on or try
> different LOGFORMAT
> (For help on all errors and warnings, see
> docs/errors.html)
> Current logfile format:
> %S %j %j [%d/%M/%Y:%h:%n:%j] "%j%w%r%wHTTP%j" %c
> %b\n
> %S %j %j [%d/%M/%Y:%h:%n:%j] "%j%w%r" %c %b\n
> %S %j %j [%d/%M/%Y:%h:%n:%j] "%r" %c %b\n
There's no indication that Analog has any problem with %t in an
APACHELOGFORMAT statement in those messages. In fact that warning message
indicates that Analog recognizes it properly and parses it as
"[%d/%M/%Y:%h:%n:%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
+------------------------------------------------------------------------