Select to view content in your preferred language

Log REST data under FINE not INFO

38
0
5 hours ago
Status: Open
BillMitchell
Regular Contributor

At INFO level of logging, ArcGIS Server not only captures who made a request to a REST endpoint (metadata) , but also what was requested (data).  These should be captured at different logging levels, and specifically the data should be captured at FINE level, not INFO.

Background:

My organization provides geospatial tools and platforms, which are used by other agencies within the organization and billed back internally.  To better apportion that billing and know which users we may need to work with to migrate to new/different services, we want to keep statistics on which users are using which services and how much.

Several of the agencies we support have significant data privacy laws/rules/policies, which can extend to things like addresses---for instance, the health department.  We do what we can to keep any address information out of logs.

However, as of Enterprise 11.2 (and probably more recent versions), both the initial metadata of a REST request against a geocoding service (user_x made a request for the custom_geocoder service) as well as the data of that request (found result for "123 main st, anytown, MN 54321-1234", matched AddressPoints) are logged at INFO level.  As a result, we need to keep the logging level set to Warning, so as not to capture the address in the logs.

By moving the data into the FINE level, it allows us to use the INFO level to get service usage info (metadata) while not logging the data of the requests.