Stats by Day


AWStats reports usually show statistics collected during a calendar month, but there is an almost secret feature that allows to get reports generated on a daily basis. This feature is not fully supported by AWStats and that is probably the reason why it is not actively promoted.

How to generate daily data base files

You need to add the databasebreak=day option to the AWStats update command. The command will look like this:

perl awstats.pl -config=www.my_site.com -update -databasebreak=day

How to view the report for a given day

The databasebreak and day options must both be used in the command line. The value of databasebreak must be day and the value of day must be the day of the month. The address bar will show:

http://www.internetofficer.com/cgi-bin/awstats.pl?config=www.internetofficer.com&databasebreak=day&day=06&month=07&year=2007

Improve readability of the daily report

You can theoretically use the same AWStats configuration file for the monthly statistics and for the daily statistics. As some data do not make sense for daily stats, it is recommended to remove them from the daily reports. In the AWStats config file for the daily reports, we replace:

ShowMonthStats=UVPHB
ShowDaysOfMonthStats=VPHB
ShowDaysOfWeekStats=PHB

by:

ShowMonthStats=0
ShowDaysOfMonthStats=0
ShowDaysOfWeekStats=0

In fact, we recommend to remove even more data from the daily reports and to keep only the data which are of interest for a daily monitoring.

Combining daily and monthly stats

We have developed the AWStats Day by Day add-on. It is a set of JavaScript routines to easily switch from daily to monthly AWStats reports and back or from one day to another, in the top section of the AWStats report.

One Response to “Stats by Day”

  1. Rajan Singh says:

    hi,
    I want my AWstats report between 2 given days,
    If any one have any solution regarding this please let me know.

    bye

    Question edited by admin and moved to our AWStats forum: stats between two days.


 

Leave a Reply

You must be logged in to post a comment.