Jump to content

Your Webpage Stats: Difference between revisions

Incorrect logfile format
(Incorrect)
(Incorrect logfile format)
Line 29: Line 29:
Set the 'SiteDomain' option to 'SiteDomain="www.redbrick.dcu.ie"'
Set the 'SiteDomain' option to 'SiteDomain="www.redbrick.dcu.ie"'


Set the 'LogFile' option to 'LogFile="/local/web/logs/%MM-0/%DD-0-combined_log"'.
Set the 'LogFile' option to 'LogFile="/local/web/logs/%YYYY-0/%MM-0/%DD-0-combined_log"'.


If you want to gather stats for more than a day, say the whole month, then replace the 'LogFile' option with this: 'LogFile="/pathtotools/logresolvemerge.pl /local/web/logs/MM-0/*-combined_log |"'. Replace 'pathtotools' to point to where you installed the awstat tools directory. Be warned, this will slow down the update process by a few minutes. BTW, before 'logresolvemerge.pl' will run, you'll have to change the permissions to excutable, i.e. 'chmod 755 /pathtotools/logresolvemerge.pl'.  
If you want to gather stats for more than a day, say the whole month, then replace the 'LogFile' option with this: 'LogFile="/pathtotools/logresolvemerge.pl /local/web/logs/MM-0/*-combined_log |"'. Replace 'pathtotools' to point to where you installed the awstat tools directory. Be warned, this will slow down the update process by a few minutes. BTW, before 'logresolvemerge.pl' will run, you'll have to change the permissions to excutable, i.e. 'chmod 755 /pathtotools/logresolvemerge.pl'.