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

Hi Tony Barratt, poornachander, Paul Ciarfella



I have been figuring out how to debug REST services. I came across below link and followed instructions:



https://developer.servicenow.com/app.do#!/document/content/app_store_doc_rest_integrate_fuji_r_Debug...



I already set the property mentioned in the article to true. I am running the REST service through the UI (System Web Services -> Outbound -> REST Message)and through script (Fix Script). But to no avail, I cannot seem to find the logs anywhere. Any advice?


tony_barratt
ServiceNow Employee
ServiceNow Employee

Hi Dalton,



Output will be in System Logs


Viewing System Logs - ServiceNow Wiki



Best Regards



Tony


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


silas1
ServiceNow Employee
ServiceNow Employee

Hi Chris Martin, REST requests are not currently (Fuji) logged as Transactions but will be logged as Transactions starting in Geneva. Beyond Geneva keep an eye out for more tooling around API usage metric capabilities.


Dear Silas,



That's very good news. Do you know if the same is going to happen for incoming JSONv2 requests?



I am asking because there does not seem to be a property to debug incoming JSONv2 requests. Looking at the node logs shows the parameters of the requests, but not their payload. So for example, for an incoming "update" JSONv2 request, I can see which record is being targeted, but not how the fields will be updated.



Best regards, David