Howto use analog (a log analyser) with swiki logfile.

Samir Saidani saidani at info.unicaen.fr
Sat Jun 28 16:51:26 UTC 2003


Hello,

Swiki log files correspond unfortunately to none standard logfiles
using by webservers. So almost none of web analysers could be used
with this non-standard file. I found recently a workaround for this
problem by using analog, which allows to specify your own logfile
format.

You have to add this line to analog.conf :
#Swiki Log Format
LOGFORMAT (%s\t%j\t%j\t[%d/%M/%Y:%h:%n:%j %j]%w%r\t%j\t%b\t%B)
Then add
LOGFILE /path/mylogfile

You have now to activate dnslookup (built-in analog) (swiki doesn't
resolve ip name in its log):
#DNS Lookup
DNS WRITE
DNSFILE /path/dnscache
DNSLOCKFILE /path/lockfile

I suggest you to carefully read the great analog documentation (to set
up the language for instance), and to install report magic, which
outputs funnier reports than analog (but report magic needs analog
output).

Samir

PS: I think that we always should consider the log file format used in
whatever wiki or webserver. Developpers, please, consider the
possibility to follow more standard ways for those critical kind of
things ! Example: swiki returns "authorized" which is a non-standard
error code (cf. http protocol, particularly http response codes).  


-- 
Samir SAIDANI				
PhD in CS / Doctorant en informatique 		web : http://www.info.unicaen.fr/~saidani
Universite de Caen - Laboratoire GREYC          tel : 02-31-56-74-30
Equipe MAD - Campus II - 14032 Caen Cedex       fax : 02-31-56-76-30



More information about the Squeak-dev mailing list