register
other register

Tuesday, January 15, 2008

Weblog Analysis with Webalizer

Webalizer is a web log analysis tool which runs very fast. You can download Webalizer Here.

By default

>./webalizer logfile

will process only one log file. If all the logs are in one file, then it is ok. But for logs which rotate on a daily basis, you have to configure webalizer to do so.

Here is my webalizer.conf, which should be at the webalizer command directory.

**********************************************
...
LogType clf
OutputDir /outputdirectory
HistoryName webalizer.hist
Incremental yes
IncrementalName webalizer.current
...
**********************************************


Create a script foo.sh like below will do the business:

**********************************************
#!/bin/sh

for file in /logfiles/*
do
/pathtowebalizer/webalizer $file
done
exit 0
**********************************************

No comments: