How to monitor errors from Matomo CRON tabs?
There may be scenario where you may want to analyze the logs generated by Matomo CRON tabs. It is important to monitor your CRON tab to make sure all the data is getting processed without any issue and also get notified in case of an error.
An alert can be generated simply by adding the below to your first line of CRON
MAILTO=your-ops-team@company.com
This will ensure that whenever the Matomo core:archive command trigger an error, your team will be notified with the error message.
Next FAQ: How do I setup Auto-Archiving script to run using systemd on a Linux system instead of cron?
Previous FAQ: How do I replay the traffic to Matomo and ingest logs of matomo.php (or piwik.php) requests?