I upgraded from 1.71 to 1.7.2rc8 today. Located the ‘log-analytics’ folder, ran the script like this:
python import_logs.py --idsite=5
To which I got the following response:
File “import_logs.py”, line 303
Level=logging.DEBUG if self.options.debug >=1 else logging.INFO,
Syntax Error: invalid syntax
I tried it without the --idsite=5, same result.
What am I doing wrong?
According to what I read, this should display (at minimum) a help screen.
I went to the link you provided, got the latest script, uploaded it to the correct location, but when I run it I continue to get the same error as I listed in my original post.
Out of unforeseen necessity, I had to move my major Piwik installation to a different server while some major repairs were going on with the other one.
However, I’m still importing 25Gb worth of logs, 250k lines at a time
Problem is, I’m running Piwik 1.9, and this alternate server is using python 2.4.3 (previous server using 2.6.6), and now trying to import logs is giving me this error:
File "misc/log-analytics/import_logs.py", line 375
level=logging.DEBUG if self.options.debug >= 1 else logging.INFO,
^
SyntaxError: invalid syntax
is there a patch I should try, or should I just wait a couple days and go back to the replacement server that’s coming?