Setting up a local environment to demo Piwik

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.

Thanks for the help, Piwik looks great!

Yes the import IIS should work fine on your local install

you can import several log files at once by simply specifying them all in the command

Or in ubuntu you can do the following:

find <PATH WITH LOGFILES IN IT> -name <NAME OF LOGFILE> -type f -exec python /var/www/analytics/piwik/misc/log-analytics/ --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:

you would execute in the console:

find /backup/logfiles -name access*.log -type f -exec python /var/www/analytics/piwik/misc/log-analytics/ --url= {} --idsite=1 --recorders=4 --enable-http-errors --enable-http-redirects --enable-static --enable-bots \;

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).