Logfile import - can't access this resource as it requires an 'view' access

Hi all,

I am (for the first time) trying to import Apache logfiles into an existing Piwik installation. I am running Piwik 2.13.1 on a hosting environment (HostEurope).

Here ist my command:

python /is/htdocs/***/www/piwik-stats/misc/log-analytics/import_logs.py access_log_2014-11-20.log --url=http://piwik.**.** --idsite=12 --exclude-path="/administrator/" --show-progress --login=*** --password=*** --token-auth="/is/htdocs/***/www/piwik-stats/misc/log-analytics/import_logs.py"

And here is the error message:

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 = 12.

With the login and password used above, I am able to “view” the still completely empty site (no data) though.

Any thoughts on this? Many thanks in advance!

Hi all,

ok, I figured out the mistake … I obviously need to use the token_auth value for the token-auth option :slight_smile: It then works just fine …

Cheers.