The CreatorCon Call for Content is officially open! Get started here.

where can I find the REST API response for a transaction log entry?

snow2p
Tera Expert

Hi, 

I'm testing an intergration that queries the incident table to find the number of incidents that fit a certain criteria (actually returns a list of incidents, but I'm tracking the list size for the purpose of this question). While nothing changed in my code and nothing appears to have changed in the incident table, the results of the query appear to have changed suddenly after a certain time. I would like to see the response to my request and cannot seem to find it. The transaction log is below with the actual transaction below that. Any ideas how I can find out what changed so that may servicenow tenant changed it's response? I was hoping to see it in the API response, but if it's not available, I'm open to looking elsewhere to figure this out.

snow2p_0-1758657227317.png

looked at the actual entries, I cannot find the API response (the request is visible)

snow2p_2-1758657523931.png

 

 

7 REPLIES 7

kaushal_snow
Mega Sage

Hi @snow2p ,

 

syslog_transaction table logs details about API transactions, including response times, URLs called, and users who made the requests, but it does not store the actual response body or HTTP status code due to performance considerations and the potential size of response payloads......To capture the response body, you can enable logging in the sys_outbound_http_log table by adding a record in System Web Services > HTTP Log Levels, which will log outbound HTTP requests and their responses, including the response body...

 

If you found my response helpful, please mark it as ‘Accept as Solution’ and ‘Helpful’. This helps other community members find the right answer more easily and supports the community.

 

Thanks and Regards,
Kaushal Kumar Jha - ServiceNow Consultant - Lets connect on Linkedin: https://www.linkedin.com/in/kaushalkrjha/

I tried to go the location you suggested

snow2p_0-1758742102169.png

but there was no way to add a record (see below). Should I be changing a property somewhere to enable the outbound http logging?

snow2p_1-1758742194750.png

 

 

Hi @snow2p 

HTTP log level can be set for Outbound Rest message. Outbound REST messages are for integration scenarios where 3rd party application APIs are configured/consumed in ServiceNow. 

 

From your query, I understand you are looking for response body for inbound APIs. You can try to call the inbound API from Postman if you want to see the response body.

 

SwapnaAbburi_0-1758742757980.png

 

I have seen individual call responses for my API call using the API explorer, so that's not the problem. The problem is that I am testing an integration and need to review the logs for time periods where it appears that the data from ServiceNow changes in the response when it should not. Since I don't know when the problem will occur, I can only search logs around the time of the problem and thusly need the logging turned to level:all.