Hi,
I work for an organisation that is using (the ancient) NetTracker for it’s intranet stats tracking. The server is Windows so the logs are IIS format.
Is it possible to set up a local environment on my PC to run Piwik and use the import_logs script to read the old logs?
I’ve install xampp, and piwik successfully, but as the logs are IIS will the import script work?
The organisation is very conservative, and getting them to adopt Piwik will be much easier if I can show some results.
find <PATH WITH LOGFILES IN IT> -name <NAME OF LOGFILE> -type f -exec python /var/www/analytics/piwik/misc/log-analytics/import_logs.py --url=http://<SITE>/analytics/piwik/ {} --idsite=1 --recorders=4 --enable-http-errors --enable-http-redirects --enable-static --enable-bots \;
So if you would be importing files from a directory structure like this:
/backup/logfiles/2012/01/01/access2012010100.log
/backup/logfiles/2012/01/01/access2012010112.log
/backup/logfiles/2012/01/02/access2012010200.log
/backup/logfiles/2012/01/02/access2012010212.log
This will find all files in the directory and sub directories of /backup/logfiles with a filename that would match access*.log and would feed the found file(s) with full path to the python script (in the place where the {} are).