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.

Previous FAQ: How do I replay the traffic to Matomo and ingest logs of matomo.php (or piwik.php) requests?