REST API Logging?

Chris M3
Tera Guru

Is there any log of the interactions that come through the REST API?   I ran a few calls through it, and checked the transaction logs, and didn't see anything.   Has anyone come up with a solution to monitor what's being done through the REST interface?

1 ACCEPTED SOLUTION

I found the logs for REST here after creating/enabling the glide.rest.debug property (Fuji):



System Logs > Node Log File Browser



Setting the timespan for the query correctly (and narrowly around the expected time), should see something like this:



SN-logs.png


View solution in original post

11 REPLIES 11

poornachander
Mega Expert

When the glide.rest.debug system property is set to true, it logs all REST processing, including processing durations, headers, and the request body. Prolonged use of this property can affect performance, so it is best to use it while debugging REST processing, and then set the property back to false.


What log is used?   Script?   Transaction?       The wiki does not say.



I've been trying to log REST operations and have set glide.rest.debug to true (as true/false) and "true" (as string), but am not seeing any logging.



This is on Fuji patch 2.


Hi Paul,


glide.rest.debug does facilitate the logging of REST API


REST API - ServiceNow Wiki



The logging is sent to System Logs


Viewing System Logs - ServiceNow Wiki


..


..


3.5 System Logs

System logs display warnings and errors within ServiceNow processes and records, and non-critical events such as memory usage on the ServiceNow server machine. This list view displays the log entries for the current day only. To view other log files, use the log file browser.



Incidentally Chris Martin if you are using


http://wiki.servicenow.com/index.php?title=Import_Set_API#gsc.tab=0


then any inserts you make into the the import set table will be visible on the instance for 7 days by default.



Best Regards



Tony


We were more interested in knowing exactly what records were being queried, by which users, through the REST API.   We are instead going to be implementing the High Security plugin, so that they can only query what we allow.