I tried it with the latest build and nothing changes…
C:>python d:\piwik\misc\log-analytics\import_logs.py --url=http://localhost:888
8 d:\piwik\Log\W3SVC4\u_ex130503.log --idsite 1 --enable-http-errors --enable-ht
tp-redirects --enable-static -ddd
2013-05-13 09:06:34,236: [DEBUG] Accepted hostnames: all
2013-05-13 09:06:34,236: [DEBUG] Piwik URL is: http://localhost:8888
2013-05-13 09:06:34,236: [DEBUG] No token-auth specified
2013-05-13 09:06:34,237: [DEBUG] No credentials specified, reading them from "d:
\piwik\config\config.ini.php"
2013-05-13 09:06:34,240: [DEBUG] Using credentials: (login = admin, password = 8
34d3d5fa57472213b8d3be0dfac869f)
2013-05-13 09:06:34,382: [DEBUG] Authentication token token_auth is: 0e1e98beb69
e8cd0ab7db8df06404a2e
2013-05-13 09:06:34,440: [DEBUG] Resolver: static
0 lines parsed, 0 lines recorded, 0 records/sec (avg), 0 records/sec (current)
2013-05-13 09:06:34,556: [DEBUG] Launched recorder
Parsing log d:\piwik\Log\W3SVC4\u_ex130503.log…
2013-05-13 09:06:34,558: [DEBUG] Detecting the log format
2013-05-13 09:06:34,562: [DEBUG] Format iis matches
2013-05-13 09:06:34,562: [DEBUG] Format s3 does not match
2013-05-13 09:06:34,562: [DEBUG] Format common_complete does not match
2013-05-13 09:06:34,563: [DEBUG] Format common does not match
2013-05-13 09:06:34,563: [DEBUG] Format common_vhost does not match
2013-05-13 09:06:34,565: [DEBUG] Format ncsa_extended does not match
2013-05-13 09:06:34,565: [DEBUG] Format iis is the best match
2013-05-13 09:06:34,568: [DEBUG] Invalid line detected (line did not match): #So
ftware: Microsoft Internet Information Services 7.0
2013-05-13 09:06:34,571: [DEBUG] Invalid line detected (line did not match): #Ve
rsion: 1.0
2013-05-13 09:06:34,572: [DEBUG] Invalid line detected (line did not match): #Da
te: 2013-05-03 00:04:09
2013-05-13 09:06:34,575: [DEBUG] Invalid line detected (line did not match): #Fi
elds: date time s-sitename s-computername s-ip cs-method cs-uri-stem cs-uri-quer
y s-port cs-username c-ip cs-version cs(User-Agent) cs(Cookie) cs(Referer) cs-ho
st sc-status sc-win32-status sc-bytes cs-bytes time-taken
824 lines parsed, 200 lines recorded, 199 records/sec (avg), 200 records/sec (cu
rrent)
2013-05-13 09:06:35,953: [DEBUG] Error when connecting to Piwik:
1004 lines parsed, 200 lines recorded, 99 records/sec (avg), 0 records/sec (curr
ent)
1004 lines parsed, 200 lines recorded, 66 records/sec (avg), 0 records/sec (curr
ent)
2013-05-13 09:06:37,989: [DEBUG] Error when connecting to Piwik:
1004 lines parsed, 200 lines recorded, 49 records/sec (avg), 0 records/sec (curr
ent)
1004 lines parsed, 200 lines recorded, 39 records/sec (avg), 0 records/sec (curr
ent)
2013-05-13 09:06:40,022: [DEBUG] Error when connecting to Piwik:
Fatal error: None
You can restart the import of “d:\piwik\Log\W3SVC4\u_ex130503.log” from the poin
t it failed by specifying --skip=204 on the command line.
3 error and then exits with error…
I tried changing the .py to update the retries from 3 to 30, but the problem is the same…starts to fail and fails fails fails until exit with the same error.
I tried changing the application_pool on IIS becouse I think that is something of the PHP on IIS. I tried to redirect the query to another Linux piwik instance (in other machine) and it works…executing it on the same Windows machine (see the next log). I think that its something of the Py-PHP working on IIS.
The same LOG in the same machine…but redirecting the calls to another Piwik machine (working in Linux):
C:>python d:\piwik\misc\log-analytics\import_logs.py --url=http://XXXXXXXXXXXXXX:8888 d:\piwik\Log\W3SVC4\u_ex130503.log --idsite 1 --enable-http-errors --enable-http-redirects --enable-static -ddd
…some lines removed to make it more readable…
5821 lines parsed, 5200 lines recorded, 156 records/sec (avg), 200 records/sec (
current)
6005 lines parsed, 5200 lines recorded, 152 records/sec (avg), 0 records/sec (cu
rrent)
2013-05-13 09:10:42,805: [DEBUG] Invalid line detected (line did not match): 201
3-05-03 09:46:56 W3SVC4 entorno125 ::1 GET /themes/default/images/success_medium
.png - 8888 - ::1 HTTP/1.1 Mozilla/5.0+(compatible;+MSIE+9.0;+Windows+NT+6.0;+WO
W64;+Trident/5.0) PIWIK_SESSID=tnk8vh9brlfrn9vb0a7m74m0l3 http://localhost:8888/
index.php?action=tablesCreation&module=Installation localhost:8888 304 0 210 522
0
2013-05-13 09:10:42,809: [DEBUG] Invalid line detected (line did not match): 201
3-05-03 09:47:16 W3SVC4 entorno125 ::1 GET /index.php action=generalSetup&module
=Installation 8888 - ::1 HTTP/1.1 Mozilla/5.0+(compatible;+MSIE+9.0;+Windows+NT+
6.0;+WOW64;+Trident/5.0) PIWIK_SESSID=tnk8vh9brlfrn9vb0a7m74m0l3 http://localhos
t:8888/index.php?action=tablesCreation&module=Installation localhost:8888 200 0
7940 433 983
6112 lines parsed, 5400 lines recorded, 153 records/sec (avg), 200 records/sec (
current)
6112 lines parsed, 5600 lines recorded, 154 records/sec (avg), 200 records/sec (
current)
6112 lines parsed, 5800 lines recorded, 156 records/sec (avg), 200 records/sec (
current)
6112 lines parsed, 6062 lines recorded, 158 records/sec (avg), 262 records/sec (
current)
Purging Piwik archives for dates: 2013-05-03
To re-process these reports with your new update data, execute the piwik/misc/cr
on/archive.php script, or see: How to Set up Auto-Archiving of Your Reports - Analytics Platform - Matomo for more i
nfo.
Logs import summary
6062 requests imported successfully
1812 requests were downloads
50 requests ignored:
50 invalid log lines
0 requests done by bots, search engines, ...
0 HTTP errors
0 HTTP redirects
0 requests to static resources (css, js, ...)
0 requests did not match any known site
0 requests did not match any requested hostname
Website import summary
6062 requests imported to 1 sites
1 sites already existed
0 sites were created:
0 distinct hostnames did not match any existing site:
Performance summary
Total time: 38 seconds
Requests imported per second: 158.62 requests per second
Works fine…Why on Windows dont do it??? :(((((((