Trouble importing logs on arch linux w nginx

-one has to specify python2 in arch as python3 is the default.

now when following the piwik docs (as i understand them and including small caveat above) and running “python2 /usr/share/webapps/piwik/misc/log-analytics/ --url=http://localhost access.log --idsite=1 --recorders=2 --enable-bots”

i get

“Fatal error: couldn’t open the configuration file, required to get the authentication token”.

oh yeah, piwik? what configuration file? why couldn’t you read it? are you some manner of sphinx? :slight_smile:

so, poking around in piwik’s files i see that i might could just enter the auth token as a param on the command but as i don’t know where i could find that i add “–login username_example” and “–password pass_ex”

after escaping the special characters in my pass i get a python shell cursor. hmmm…

would someone mind telling me how to get the logs imported please? thanks

Thanks for the feedback! i’ve improved a bit the message in tweak message for usability · matomo-org/matomo@734e7be · GitHub

Maybe this helps? the new script is at: