Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Log analytics : import_logs.py doesn't work any more #6120

Closed
odesport opened this issue Sep 4, 2014 · 3 comments
Closed

Log analytics : import_logs.py doesn't work any more #6120

odesport opened this issue Sep 4, 2014 · 3 comments
Labels
Bug For errors / faults / flaws / inconsistencies etc.
Milestone

Comments

@odesport
Copy link

odesport commented Sep 4, 2014

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.

Apache Log format

LogFormat "%{Host}i %h %l %u %t "%r" %>s %b "%{Referer}i" "%{User-agent}i"" vhosts

Data in MySQL

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

Import summary

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: [piwik.org]

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

@mattab
Copy link
Member

mattab commented Sep 8, 2014

Thanks for report. Could you try with 2.6.1 and see if bug is still there?

@mattab mattab added Bug For errors / faults / flaws / inconsistencies etc. Task Indicates an issue is neither a feature nor a bug and it's purely a "technical" change. c: Log Analytics (import_logs.py) and removed Task Indicates an issue is neither a feature nor a bug and it's purely a "technical" change. labels Sep 8, 2014
@mattab mattab added this to the Piwik 2.8.0 milestone Sep 8, 2014
@odesport
Copy link
Author

odesport commented Sep 8, 2014

I 've updated to 2.6.1 and the bug is still there. Only sites which use JS code can record visits.

@odesport
Copy link
Author

No problem for Piwik. My apache logs didn't rotate correctly.

Thank for your help

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug For errors / faults / flaws / inconsistencies etc.
Projects
None yet
Development

No branches or pull requests

2 participants