Where to find REST Service Debug Logs?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-20-2015 08:46 PM
Hi,
I have been figuring out how to debug REST services. I came across below link and followed instructions:
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?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-01-2017 08:50 PM
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