Hi all,
I am new to piwik. I am interested to import web server logs into piwik db. I used the pyhton script provided in the misc dir as suggested in the docs, i.e.
python2 /var/www/localhost/htdocs/piwik/misc/log-analytics/import_logs.py --url=http://localhost/piwik/ --idsite=1 --recorders=2 --enable-http-errors --enable-http-redirects --enable-static --enable-bots /tmp/access.log
the access.log file contains just 8 lines with different http status code
localhost - - [05/Mar/2015:19:54:00 +0100] "GET /awstatsQM/view/test.php HTTP/1.1" 200 1224
localhost - - [05/Mar/2015:19:54:00 +0100] "GET /awstatsQM/view/css/bootstrap.min.css HTTP/1.1" 404 293
localhost - - [05/Mar/2015:19:54:00 +0100] "GET /awstatsQM/view/css/font-awesome.min.css HTTP/1.1" 404 296
localhost - - [06/Mar/2015:08:07:28 +0100] "GET /awstatsQM/fonts/fontawesome/fontawesome-webfont.woff?v=4.2.0 HTTP/1.1" 200 83760
localhost - - [06/Mar/2015:08:17:36 +0100] "GET /awstatsQM/js/ie10-viewport-bug-workaround.js HTTP/1.1" 304 -
localhost - - [06/Mar/2015:08:18:36 +0100] "GET /awstatsQM/view/test.php HTTP/1.1" 200 7381
localhost - - [06/Mar/2015:08:18:36 +0100] "GET /awstatsQM/css/bootstrap.min.css HTTP/1.1" 304 -
localhost - - [06/Mar/2015:08:18:36 +0100] "GET /awstatsQM/css/font-awesome.min.css HTTP/1.1" 304 -
The data were correctly imported into the db but when I look into the report I have:
Action->Pages: 2 page view (Correct)
Action->Download: 6 unique download (!!!)
This is very strange because all the download (.css, .js, .woff) failed as reported in the access.log file with 404 or 304 status code.
What is wrong here? Am I misunderstood something?
TIA
Maurizio