I am having difficulties importing logs into Piwik on a server running Windows Server 2012 R2. I’ll go in to more detail if need be, but just a simple question to start with.
In the readme for importing logs it states the following:
“The default mode will try to mimic the Javascript tracker as much as possible,
and will not track bots, static files, or error requests.”
Must all old log files (prior to using piwik) have Javascript Tracker included to work with Piwik?
I have been through the forums looking for replies, but haven’t found much that has been of help yet. Checking server logs has not been of any help as there are no 404 replies. No errors/warnings in event viewer. I can browse to piwik and see the dashboard etc. perfectly fine. I feel I may be missing something relatively simple, but cannot find it for the life of me. Any help would be greatly appreciated, I’ve been at this for a couple of days now!
C:\Users\Administrator>c:\Python27\python C:\inetpub\wwwroot\piwik\misc\log-anal
ytics\import_logs.py --url=http://localhost/piwik/index.php C:\inetpub\logs\LogF
iles\W3SVC1\u_ex140109.log --idsite=1 --recorders=1 --enable-http-errors --enabl
e-http-redirects --enable-static --enable-bots --token-auth=90871c8584ddf2265f54
553a305b6ae1 -d
2014-01-16 14:50:34,721: [DEBUG] Accepted hostnames: all
2014-01-16 14:50:34,721: [DEBUG] Piwik URL is: http://localhost/piwik/index.php
2014-01-16 14:50:34,737: [DEBUG] Authentication token token_auth is: 90871c8584d
df2265f54553a305b6ae1
2014-01-16 14:50:34,737: [DEBUG] Resolver: static
2014-01-16 14:50:34,799: [DEBUG] Error when connecting to Piwik: HTTP Error 404:
Not Found
2014-01-16 14:50:36,831: [DEBUG] Error when connecting to Piwik: HTTP Error 404:
Not Found
2014-01-16 14:50:38,862: [DEBUG] Error when connecting to Piwik: HTTP Error 404:
Not Found
Traceback (most recent call last):
File “C:\inetpub\wwwroot\piwik\misc\log-analytics\import_logs.py”, line 1691,
in
resolver = config.get_resolver()
File “C:\inetpub\wwwroot\piwik\misc\log-analytics\import_logs.py”, line 601, i
n get_resolver
return StaticResolver(self.options.site_id)
File “C:\inetpub\wwwroot\piwik\misc\log-analytics\import_logs.py”, line 946, i
n init
’SitesManager.getSiteFromId’, idSite=self.site_id
File “C:\inetpub\wwwroot\piwik\misc\log-analytics\import_logs.py”, line 928, i
n call_api
return cls._call_wrapper(cls._call_api, None, None, method, **kwargs)
File “C:\inetpub\wwwroot\piwik\misc\log-analytics\import_logs.py”, line 917, i
n _call_wrapper
raise Piwik.Error(message) main.Error: Not Found
There are no 404’s in the IIS logs, or errors in the System32 HTTPError logs. I cannot find an error log for piwik anywhere? Which error log are you specifically talking about?