Running 2.2.0 here, working on a log-analytics mode piwik siteid.
I’m running into an issue which I presume must be the fault of the archive routine. In a nutshell, although daily and monthly charts are populated (not enough data really to check yearly), the weekly charts are blank except for the most recent.
Daily:
[attachment 1710 daily.JPG]
Weekly:
[attachment 1711 weekly.JPG]
Monthly:
[attachment 1712 monthly.JPG]
During setup and test of PIwik I have purged and reloaded the log stats a number of times.
This is the import syntax we’re using:
/var/www/piwik/misc/log-analytics/import_logs.py \
--url=https://example.com/piwik/ \
--idsite=3 \
--config=/var/www/piwik/config/config.ini.php \
--show-progress \
--show-progress-delay=60 \
--enable-reverse-dns \
--exclude-path-from=/var/www/util/piwik_excluded.paths \
/var/log/apache2/access.log.1
(obviously, for initial import we use something like access.* to load the full history – the above is integrated into logrotate).
And the hourly archive syntax is this:
/usr/bin/php5 /var/www/piwik/console core:archive --url=http://example.com/piwik/
And, for the initial loads we’ve done (after purging the site), we add –force-all-websites switch:
/usr/bin/php5 /var/www/piwik/console core:archive --piwik-domain=http://example.com/piwik/ --verbose --force-all-websites
This looks like it should be the one we want when loading history like this (from the --help text):
--force-all-websites
If specified, the script will trigger archiving on all websites and all past dates.
You may use --force-all-periods=[seconds] to trigger archiving on those websites
that had visits in the last [seconds] seconds.
I might have played with --force-all-periods except the monthly reports seem to be fine.
So, can anyone shed any light on what’s going on here? Is there are an archive syntax that would force rebuilding the weeklies?
Thanks!