Select to view content in your preferred language

What is the minimum Log Level to record user request on services?

552
5
09-06-2023 04:19 PM
PeterTQFES
Occasional Contributor

If I want to record users accessing services which level do I need I need the logs set to?

Can I confirm whether it is Verbose?

Thanks

Work with server logs—ArcGIS Server | Documentation for ArcGIS Enterprise

PeterTQFES_0-1694042213113.png

 

Peter T, Brisbane
0 Kudos
5 Replies
MarceloMarques
Esri Regular Contributor

Go with "Debug" Level.

| Marcelo Marques | Principal Product Engineer | Esri |
| Cloud & Database Administrator | OCP - Oracle Certified Professional |
I work with Enterprise Geodatabases since 1997.
“ I do not fear computers. I fear the lack of them." Isaac Isimov
0 Kudos
PeterTQFES
Occasional Contributor

Thank you for the amazingly quick response.

Debug seems pretty radical.

Our log viewer was very slow and we were advised to change it back to Warning.

We have a requirement that we see when an individual authenticated user requests an ags service and keep that log for 90 days.

Thanks again

 

Peter T, Brisbane
0 Kudos
berniejconnors
Regular Contributor

I have been told by Esri support to NOT use the debug level for everyday logging.  The amount of logging activity will slow down the servers.  We have ours set to SEVERE.

Bernie.

0 Kudos
MiguelParedes
Esri Contributor

Greetings @PeterTQFES 

If you want to record users accessing services, try "INFO".  Here is an example of logging output set to "INFO" showing access to the SampleWorldCities service/MapServer:
CnGGdCncXk.jpg

However, if you want to troubleshoot problems with the Server, then the advice from @MarceloMarques is the way to go, but "DEBUG" level, as @berniejconnors mentioned, should be used just during troubleshooting, since it has a detrimental effect on the server performance not to mention the large size of the logs produced. 

Hope the above helps.

Miguel
A_Wyn_Jones
Esri Contributor

@PeterTQFES 

If you're looking for metrics on Map service usage; consider looking at the statistics menu in ArcGIS Server manager (pic borrowed from another thread):

A_Wyn_Jones_0-1694179984098.jpeg

You can create custom reports for specific map services and use this to improve map service performance and system optimisation.

https://enterprise.arcgis.com/en/server/latest/administer/windows/about-server-statistics.htm

https://enterprise.arcgis.com/en/server/latest/administer/windows/tuning-your-arcgis-server-site.htm

This can also be automated via python and REST:

https://enterprise.arcgis.com/en/server/10.8/develop/windows/example-export-service-statistics-to-a-...

https://developers.arcgis.com/rest/enterprise-administration/server/usagereports.htm

 

 

"We've boosted the Anti-Mass Spectrometer to 105 percent. Bit of a gamble, but we need the extra resolution."