Join the #BuildWithBuildAgent Challenge! Get recognized, earn exclusive swag, and inspire the ServiceNow Community with what you can build using Build Agent.  Join the Challenge.

HTTP Outbound REST request log body truncated

Katie A
Mega Guru

I am trying to get some information from the outbound HTTP request log. I need to inspect the FULL request body that is being sent.

However, the Request body is being truncated.

Is there a way to show the entire request body in the log?

System Logs > Outbound HTTP Requests

The log page looks exactly like in the article below, it has the partial request body and then stops at **body truncated**

'The Request section includes details about the outbound request depending on log level. In this example, the request headers and truncated JSON request body are shown.'

https://developer.servicenow.com/blog.do?p=/post/outbound-web-services-logging-in-detail/find_real_file.png

1 ACCEPTED SOLUTION

Rahul Shandily3
Giga Guru

Hi there,

 

By deafult 100 characters is the limit for this field.

 

You can change the property here:

 

glide.outbound_http.content.max_limit

 

Best Regards,

Rahul

 

Please mark this as Helpful or correct if it answered your question.

View solution in original post

5 REPLIES 5

Rahul Shandily3
Giga Guru

Hi there,

 

By deafult 100 characters is the limit for this field.

 

You can change the property here:

 

glide.outbound_http.content.max_limit

 

Best Regards,

Rahul

 

Please mark this as Helpful or correct if it answered your question.

quoccsc
Tera Contributor

Unfortunately, this property has a maximum possible value of 1000. 

I have a big response body to analyze and cannot get it from Outbound HTTP Logs. But it's possible when using REST Message Test Run's log (sys_rest_message_fn_test table) 

bostonsnow
Kilo Guru

Hello all, I have this same request. I have applied the requested change to increase the character limit to 1000 but is there a way to access the truncated data on existing log entry that was created before I made this change? I'm troubleshooting an important issue and really need to see the entire request body and response body.

Any luck? I also want to see request and response and store it in a custom table.