Log Analytics Import Help


#1

I think I’ve read through most of the forum posts on this, but I haven’t seen anyone with this (if i missed it, my apologies).

I’m running this locally:
Win 8.1 Enterprise
IIS 8.5.9600.16384
Php 5.6.0
MYSQL 5.5
Python 2.7.6 (32-bit)
Piwik 2.7

here’s what i’m running from the command prompt:


PYTHON d:\Development\piwik_gcmapp\piwik\misc\log-analytics\import_logs.py --debug --show-progress --token-auth=anonymous --idsite=1 --dry-run --url=http://localhost:83/piwik/ d:\Development\piwik_gcmapp\piwik\logs\test.log

I get this:


Fatal error: cannot get the main URL of this site: You can't access this resource as it requires an 'view' access for the website id = 1.

Any thoughts?


#2

I explicitly entered my piwik admin login and password and that did the trick.


PYTHON d:\Development\piwik_gcmapp\piwik\misc\log-analytics\import_logs.py --debug --show-progress --login=my_name_here --password=not_telling --idsite=1 --dry-run --url=http://localhost:83/piwik/ d:\Development\piwik_gcmapp\piwik\logs\test.log