Using piwik-1.7.2-rc5 I’ve tried to import apache logs
python /mnt/notes.data/apache/piwik/misc/log-analytics/import_logs.py --url=http://my.site access.log
Traceback (most recent call last):
File "/mnt/notes.data/apache/piwik/misc/log-analytics/import_logs.py", line 1115, in <module>
config = Configuration()
File "/mnt/notes.data/apache/piwik/misc/log-analytics/import_logs.py", line 303, in __init__
self.options.piwik_token_auth = self._get_token_auth()
File "/mnt/notes.data/apache/piwik/misc/log-analytics/import_logs.py", line 343, in _get_token_auth
_url=self.options.piwik_url,
File "/mnt/notes.data/apache/piwik/misc/log-analytics/import_logs.py", line 643, in call_api
return self._call_wrapper(self._call_api, None, method, **kwargs)
File "/mnt/notes.data/apache/piwik/misc/log-analytics/import_logs.py", line 635, in _call_wrapper
raise Piwik.Error(str(e))
__main__.Error: <urlopen error Piwik returned an invalid response:
After that it lists the whole source code of the imported url.
Same behavior python 2.6.7 & 2.7.2 importing apache 2.2.16-6 logs.