How do I import server logs into Matomo?
Use the Matomo Log Analytics script (import_logs.py) to import Apache, Nginx, or IIS server logs. Run python import_logs.py --url=https://your-matomo.com --idsite=1 /path/to/access.log.
Log import is useful for tracking bot activity, API requests, and visitors who block JavaScript. It can be scheduled via cron to run automatically after log rotation.
Have some questions? We have your solution.