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

Outbound HTTP Log

Jamsta1912
Tera Guru

Hello all,

Can anyone point me in the direction of some documentation / articles that give an overview and some details around using the outbound HTTP log?

Thank you

Jamie

6 REPLIES 6

Mahendra RC
Mega Sage

Hi  Jamsta1912,

You can use HTTP Outbound logs for web services such as REST and SOAP in ServiceNow. On Rest Message(i.e on sys_rest_message_fn table) you can set the HTTP Log level present under Related list from 'Basic' to 'All' as shown in below screenshot.

find_real_file.png

Now once this is done, you can go in Left Navigation pane and go to 'Outbound HTTP Requests' and check the logs. Below link may be helpful:

https://docs.servicenow.com/bundle/jakarta-application-development/page/integrate/outbound-web-servi...

https://docs.servicenow.com/bundle/jakarta-platform-administration/page/integrate/outbound-web-servi...

 

Please mark it correct, if it resolves your problem.

Thanks

 

 

 

Hi Mahi,

Thanks, that's great. I've set log level to ALL for the functions I'm testing. However I'm getting this in the log as the request body: '**Payload logging not supported for unknown content-type.**'.

I'm also writing the request body to the log using gs.log and it's showing up there OK.

Is there something else I need to set in order to log the request body?

Thanks

Jamie.

okay.

so may I know what value content-type you are using?

Thanks

Hi Mahi

I haven't explicitly set a content-type in the outbound message function. Perhaps this is the extra step I'll need to do?

Jamie.