Import_logs.py works but nothing shows up in piwik frontend

i use import_logs.py to import logs, which works without errors or warnings.
i get for each logfile something like

2017-06-27 08:40:54,907: [INFO] The Piwik tracker identified 8 invalid requests.
6906 lines parsed, 6906 lines recorded, 3448 records/sec (avg), 3706 records/sec (current)

i also used this command as recommended (also without warngings or errors)

./console core:archive --force-all-websites --force-all-periods=315576000 --force-date-last-n=1000 --url='https://piwik.lit.cologne

only the first import showed up in the piwik frontend, all other “recorded lines” are missing. what can i do?

i found the problem. the useraccount i used for the import_logs.py had only view rights. i gave it admin rights and now the data appears in piwik.

this should be changed in the import_logs.py output: the api-call requested a user with view rights and did not return an error on reading the logs and trying to import them to the db. it should request a user with admin rights and/or return an error if the data is not saved to the db.

i assume the line
2017-06-27 08:40:54,907: [INFO] The Piwik tracker identified 8 invalid requests.
means the data could not be written to the db

that’s a great idea. Please suggest in the issue tracker: https://github.com/piwik/piwik-log-analytics