Monitoring and reporting have always been a shortcoming of ArcGIS Server; there just really isn't any sort of out-of-the-box notification system to let you know when things are not going smoothly. We discussed the ArcGIS Server logs in Chapter 4, ArcGIS Server Administration, and how they can be accessed through ArcGIS Server Manager, but that's the problem--to check the logs, you must log into the Server Manager, query the logs, and view the results. Do you really have time to do that every day? I didn't think so. Let's look at a script that queries the ArcGIS Server logs for you and not only reports back the results, but it sends them to you in an email. This script is adapted from an example ...
ArcGIS Server error monitoring and reporting
Get Mastering ArcGIS Enterprise Administration now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.