The Answer to Life, the Universe, and Everything

Wednesday, May 21, 2008

Awstats for Ubuntu

awstats is log analyzer I use it for tomcat log analysis.

<Host name="localhost" appBase="webapps" >
<Valve className="org.apache.catalina.valves.AccessLogValve"
directory="logs" prefix="ich_access_log."
suffix=".txt" pattern="combined" resolveHost="false" / >
</Host >


Setting for awstats

cp -r /usr/share/awstats/icon /var/www/awstats-icon
/usr/lib/cgi-bin/awstats.pl -config=hostname -update


Then access to :http://hostname/cgi-bin/awstats.pl?config=hostname

Edit cron

crontab -e
--
0 1 * * * /usr/lib/cgi-bin/awstats.pl -config=hostname -update

No comments: