import_logs.py doesn't work any more


#1

Hello,

I use import_logs.py and php5 console core:archive to update the visits of my sites. But it doesn’t work since I’m in 2.4 and now 2.5 version.

Data in the DB are not correct :

7470 done 128 2014-08-01 2014-08-01 1 2014-08-01 22:09:14 1
7472 donefea44bece172bc9696ae57c26888bf8a.VisitsSummary 128 2014-08-01 2014-08-01 1 2014-08-01 22:09:14 1
126922 done 128 2014-08-01 2014-08-31 3 2014-09-01 11:10:17 1
126923 donefea44bece172bc9696ae57c26888bf8a.VisitsSummary 128 2014-08-01 2014-08-31 3 2014-09-01 11:10:19 1
13568 done 128 2014-08-02 2014-08-02 1 2014-08-02 22:01:22 1

The import summary seems to be correct :

Purging Piwik archives for dates: 2014-07-22 2014-06-19 2014-06-25 2014-07-21 2014-06-20 2014-06-26 2014-07-07 2014-06-05

To re-process these reports with your newly imported data, execute the following command:
$ /path/to/piwik/console core:archive --url=http://example/piwik/

Reference: How to Set up Auto-Archiving of Your Reports - Analytics Platform - Matomo

Logs import summary

2138 requests imported successfully
38 requests were downloads
7713 requests ignored:
    2119 invalid log lines
    215 requests done by bots, search engines, ...
    241 HTTP errors
    134 HTTP redirects
    5004 requests to static resources (css, js, ...)
    0 requests did not match any known site
    0 requests did not match any requested hostname

Website import summary

2138 requests imported to 1 sites
    1 sites already existed
    0 sites were created:

0 distinct hostnames did not match any existing site:

Performance summary

Total time: 53 seconds
Requests imported per second: 39.82 requests per second

Any help, please ?


(Matthieu Aubry) #2

please upgrade to 2.6.0-rc1 where this issue is fixed: Index of /
I would like to test early beta and RC releases, how do I enable automatic updates to use these development versions? - Analytics Platform - Matomo