Where to find REST Service Debug Logs?

dalton1
Giga Expert

Hi,

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?

5 REPLIES 5

In case someone comes across this and they are not on the Istanbul release (where REST logging is vastly improved and available as applications just the same as System Log), you don't have to revert to the Node Log File Browser which will only show logs for the node you are currently logged into whilst also being an incomplete resource.



To produce logs on demand, from the "Scripts - Background" application, you can execute outbound REST calls using RESTMessageV2 and if the glide.rest.outbound.debug property is enabled, you will see information similar to this:



REST Msg Outbound - RESTMessageClient : Executing synchronous request


REST Msg Outbound - RESTMessageClient : Executing: Outbound REST Message/Method: null/post


HTTP Request:


POST https://xxx.service-now.com/api/...


Authentication type: null


Mutual Auth: false


ECC Queue: false



REST Msg Outbound - RESTMessageClient : Response: Outbound REST Response


HTTP Status: 200 OK


Strict-Transport-Security: max-age=15768000; includeSubDomains;


Connection: close


Set-Cookie: BIGipServerpool_xxx=461538314.33598.0000; path=/


Content-Type: text/html