I have a multisite drupal install and apache logging to separate log files. Awstats is generating and storing its data in files of the format awstatsMMYYCC.www.domainname.txt.
I believe this is correct according to the awstats conf files.

When I try and view the stats in Drupal reports, I receive the message "No statistics found for site domainname MM/YYCC".

The message specifically left out the "www" prefix, so on a hunch I copied the awstats data file to awstatsMMYYCC.domainname.txt (NOTE - removed "www." from the filename) then found that the statistics are displayed.

I think there may be some regex type processing in locating the file, because during testing I renamed my copied file to NOT.awstatsMMYYCC.domainname.txt and then there was no "error" message about "no statistics found" and the page displayed but said that "Feb-2012 has no data" - presumably a separate test for a file with the correct date and domain components passed, but a separate code-path failed to read any data from the expected file name ?

Do I need to change my awstats conf files to leave out the "www." prefix and rename the awstats data files, or is this a result of there being no $base_url specifed in the settings.php file ?

None of my 9 Drupal sites use this in the settings.php file, but all work correctly without it.

Comments

egfrith’s picture

Category: Bug report » Support request
Issue summary: View changes
Status: Active » Closed (works as designed)

Sorry for the delay in replying (!). I leave out the www prefix in the names of the awstats conf files - I think this is the right thing to do.