ArcGIS Server error monitoring and reporting
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 script by Esri that reports map draw events. The original script can be found at http://server.arcgis.com/en/server/latest/administer/windows/example-query-the-arcgis-server-logs.htm or by searching the ArcGIS Enterprise online documentation for example...