Gianni Accogli ([EMAIL PROTECTED]):
> Hi, > i use analog 5.21-1 and i have this problem when i start it: > analog: Warning L: Large number of corrupt lines in logfile > /home/sites/site77/web/weblogs/access.log: turn debugging on or try different > LOGFORMAT in my httpd.conf is this: > LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" %{User-Agent}i\" combined There is a problem with this format. In fact Apache shouldn't even process this line. There's no trailing quote to match the opening one. Usually 'combined' format is defined like this: LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\"" combined If you have actually used that format (and, for some reason, Apache accepted if) you may have trouble processing your logs, as the User Agent field will not be quoted. You may be able to match it with an APACHELOGFORMAT command in Analog or you may want to process those log files with a tool like Perl or sed to clean them up. > LogFormat "%h %l %u %t \"%r\" %>s %b" common > LogFormat "%{Referer}i -> %U" referer > LogFormat "%{User-agent}i" agent Which of these is in use? (Look for the CustomLog command.) > and in my analog.cfg i have this: > LOGFORMAT COMBINED > LOGFORMAT COMMON > LOGFORMAT BROWSER Analog should auto-detect any of these anyway. > LOGFORMAT REFERER REFERRER is spelled with two R's in the middle. > LOGFORMAT ([%d/%M/%Y:%h:%n:%j] %B) This only provides browser information and doesn't match any of the LogFormat lines you show above, > how can i resolve my problem? First try it without any *LOGFORMAT commands. Analog will autodetect common and combined format and many others. If that doesn't work, use APACHELOGFORMAT command with the format from above that is in use. Full details on the *LOGFORMAT commands can be found here: http://www.analog.cx/docs/logfmt.html. -- Jeremy Wadsack Wadsack-Allen Digital Group +------------------------------------------------------------------------ | This is the analog-help mailing list. To unsubscribe from this | mailing list, go to | http://lists.isite.net/listgate/analog-help/unsubscribe.html | | List archives are available at | http://www.mail-archive.com/analog-help@lists.isite.net/ | http://lists.isite.net/listgate/analog-help/archives/ | http://www.tallylist.com/archives/index.cfm/mlist.7 +------------------------------------------------------------------------