HOW TO
The Enterprise Log Filter is a Python script that condenses ArcGIS Enterprise duplicate log entries while providing a count of the number of occurrences of a log message, and its first and last timestamps. ArcGIS Enterprise versions 11.4, 11.3, 11.2, 11.1, and 10.9.1 are supported.
The Enterprise Log Filter can read an ArcGIS Server, Portal for ArcGIS, ArcGIS Data Store, or ArcGIS Server Service log. The script input can be an individual file ending in '.log' or a directory of '.log' files.
To use this script, download the attached file and follow the instructions provided below.
Note: This tool exports log messages that include URLs and directory paths associated with the ArcGIS Enterprise environment. Discretion is advised when sharing this information outside of your organization.
Example:
cd C:\LogFilter-main\LogFilter-main
C:\Program Files\ArcGIS\Server\framework\runtime\ArcGIS\bin\Python\envs\arcgispro-py3\Python.exe
C:\EnterpriseLogFilter>"C:\Program Files\ArcGIS\Server\framework\runtime\ArcGIS\bin\Python\envs\arcgispro-py3\python.exe" EnterpriseLogFilter.py
Directory example:
C:\arcgisserver\logs\<machine>\server
File name example:
C:\arcgisserver\logs\<machine>\server\<file>.log
Example output file path:
C:\Users\<user>\Desktop\outputfile.log
You should see a brief output of the logs analyzed in the terminal and a new output file where the output file path was entered.
Once the script has been run, an output file is generated using the output file path and name provided in Step 5 of 'Run the Script', above.
Article ID: 000034630
Get help from ArcGIS experts
Download the Esri Support App