Error Logs for a specific Rest API call

swaggerdagger
Kilo Contributor

Where can I find the error logs for a particular REST API call on e.g: /api/x_dynat_ruxit/problem_notification

If I get 500 status code back and no other message? Thanks for the Info.

3 REPLIES 3

aizawaken
Tera Guru

hi @swaggerdagger ,

I found this thread in Community. A little bit old, but I hope it would help you,,,

     Thank you

BillMartin
Mega Sage

hi @swaggerdagger ,

 

When integrating external systems with ServiceNow, one of the key challenges developers face is effectively managing and logging errors that arise from REST API calls. This article I created is designed to equip you with the knowledge needed to implement robust error logging in these scenarios. We’ll provide you with how to handle exceptions, log errors to system logs, and even create custom log tables for detailed tracking. By mastering these techniques, you'll ensure that your integrations are not only efficient but also resilient to unforeseen issues. Whether you're new to ServiceNow or a seasoned developer, this guide will enhance your ability to troubleshoot and maintain API-driven workflows.

 

A Developer's Guide to Implementing Error Logging in ServiceNow REST API Calls

ersureshbe
Giga Sage
Giga Sage

Hi, The capture the logs for below use cases.

1. Inbound to ServiceNow - Define the import set table and capture the incoming transaction and logs 

2. Outbound from ServiceNow - use below link and understand how to enable the log level

Outbound HTTP Logging (servicenow.com)

 

Regards,
Suresh.