Piwik Import Nginx Server Monthly Access Logs

SSH into your server and type the following to import one Nginx (click here for Apache tutorial) access log file into your Piwik tracked website:

python /var/www/domain.com/web/misc/log-analytics/import_logs.py --idsite=1 --url=http://domain.com/piwik /var/log/nginx/websitetotrack.access.log.22.gz

http://domain.com/piwik: The http path of your Piwik installation

You can import different types of files including raw access log files as well as zipped log files.

Further reading:

1 thought on “Piwik Import Nginx Server Monthly Access Logs”

Comments are closed.