Outbound HTTP Log
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-16-2018 04:45 AM
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
- Labels:
-
Integrations
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-16-2018 08:59 AM
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.
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:
Please mark it correct, if it resolves your problem.
Thanks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-17-2018 02:29 AM
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-17-2018 04:20 AM
okay.
so may I know what value content-type you are using?
Thanks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-17-2018 04:45 AM
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.