Hello, is there a way to see log/stats/info for all requests hitting a particular REST endpoint?
Does anyone know how and from where you'd get that information?
If you want everything, check your web adaptor logs. That should have a record of every GET / POST request that comes in. We use Microsoft IIS for ours, and it logs to text files on the machine. You can also have those logs pipe into another service, like AWS Cloudwatch, among many, many others.
Once you've got your logs, it's a simple text search to isolate entries for a specific URL.
Will it tell me what record/attribute was accessed? Let's say I have Ownership parcel and I want to know who accessed the ownership info and when - would this log be able to provide this info?
Maybe? Part of the request would be the query, so a GET request might have "where=some_condition" tacked on. An edit comes through as a POST, and I'm not sure about retrieving the edit payload, where the record ids would be.
The web asptor log should include the IP address of the computer where the request originated. Is your server internal or is it public facing?
The log will also include the entire URL of the request. The Parcel ID that is being requested should be included. Combining the IP address and the Parcel ID you would have a good picture of who looked at what if you can resolve the IP address to an individual computer or person.
Bernie.
It's a public facing server. I will have a look at the logs for web adaptor. Thanks.
Hello @aam
I would recommend using "System Log Parser" this tool is an ArcGIS for Server (10.1+) log query and analyzer tool to help you quickly quantify the GIS usage in your deployment.
When run, it connects to an ArcGIS for Server instance on port 443/6443/6080/80 as a publisher (or an administrator), retrieves the logs from a time duration (specified as an input), analyzes the information then produces a spreadsheet version of the data that summarizes the service statistics
Hope it helps!
-Archit