To configure outbound logging in ServiceNow, open the relevant REST method or SOAP message function and use Set log level. Choose Basic for call metadata, Elevated for headers and query details, or All for request and response bodies. Use domain exclusions to keep selected destinations at Basic while investigating other integrations.
Choose the evidence the failed request needs
Start with the question you need the log to answer. A response status problem, a missing header, and an unexpected response body need different evidence. Increasing detail without defining the question can leave a team collecting sensitive content while still looking at the wrong call.
Basic includes the HTTP Method, Protocol, Scheme, Hostname, Path, HTTP response status, Request length, Response length, and Total call time. Those fields let you compare destination, result, size, and elapsed time without collecting message bodies. Sequence and System ID also belong to the Basic field set.
Basic also includes Source table, Source record ID, Scope, Session, Transaction, User, and MID server. These fields provide context for tracing the request. Viewing Source record ID requires read access to records in the specified Source table; raising the logging level does not replace that permission.
- Basic: use the call metadata to establish which request ran and what result it received.
- Elevated: adds Request headers, Request query, and Response headers when metadata leaves an unanswered question.
- All: adds Request body and Response body when diagnosis requires inspecting the exchanged content.
For example, investigate an unexpected response status with Basic first. If the working and failing calls differ in a header or query parameter, Elevated supplies that comparison. If the problem concerns the submitted data or returned content, consider All for the affected request after reviewing what that content contains.
Configure outbound logging on the correct record
Apply the change to the REST method or SOAP message function that makes the failing call. Before changing anything, identify the destination and the operation involved. A log level attached to a different method can produce more detail for a successful request while leaving the failure unexplained.
- Locate the REST method or SOAP message function associated with the request you are investigating.
- Record its current logging choice so you can restore the intended setting after diagnosis.
- Open the record and select the Set log level related link.
- Choose the level that supplies the fields needed for this investigation.
- Run a controlled reproduction and compare its destination, response status, and call context with the failure.
- Review the resulting fields, then return the record to the agreed ongoing level when the investigation ends.
Keep the reproduction small enough that you can recognize the request. Note the operation and test time before running it. This is an investigation practice: it helps distinguish a new test from an earlier call without relying on a body search through unrelated traffic.
If the underlying integration is still being configured, use outbound REST message setup to organize that work. Logging is easier to assess when the intended method and destination are already clear. Check the controls on your instance and release before applying the change.
Review multiple requests and scripted settings
Use System Web Services > HTTP Log Levels to change levels across multiple outbound requests. The list contains outbound requests configured with a specific log level. Review the entries associated with the investigation rather than assuming that the list represents a complete inventory of integration traffic.
Before making several changes, write down which requests need additional detail and why. One operation may need response headers, while another needs body content. Assigning All to both would collect more information than the first question requires. A short change record makes restoring the original choices less dependent on memory.
Scripts can also set the logging level through setLogLevel() in the RESTMessageV2 and SOAPMessageV2 APIs. When a scripted request produces unexpected detail, include its logging configuration in the investigation. Keep the review focused on the code that constructs and executes the affected request.
For background on how the call is organized, see outbound REST messages explained. Connect that understanding to the specific method being tested so that a record setting and a scripted call are not mistaken for the same execution path.
Keep instance overrides temporary
The outbound logging override property and its companion level property can override logging levels for outbound requests across the instance. Use them for a limited troubleshooting period. Their broader reach makes preparation especially important when several integrations share the same environment.
Prefer a record-level change when one failing operation is already identified. Consider an instance override when the investigation requires broader observation and the team has agreed on its scope. Before enabling it, record the existing property values, the diagnostic question, the planned test, and who will restore the values.
Make restoration part of the same investigation rather than a separate cleanup task. After the reproduction, return the properties to their previous values and review any record-specific changes made during testing. Otherwise, the team may believe that detailed collection has ended while a separate setting remains in place.
For help planning this work, see ServiceNow implementation.
Use domain exclusions to limit captured detail
An excluded domain remains eligible for Basic-level logging. Exclusion therefore limits detail; it does not mean that the call disappears from logging. This matters when deciding whether a destination should retain operational metadata while avoiding headers, queries, or bodies in a diagnostic capture.
To exclude a domain, use System Web Services > Outbound HTTP Log Domain Exclusion List and create a new record. The web_service_admin role is required for this action. Review the Domain field carefully before treating the destination as covered by the exclusion.
The Domain value requires a scheme prefix, either HTTP or HTTPS followed by a colon and two forward slashes. It must identify a domain pattern or an IP address. Domain patterns follow the required period and alphanumeric ending structure. Use the complete IP address when specifying an address rather than a domain pattern.
A domain pattern can contain at most one wildcard. Place it immediately after the scheme and its two forward slashes to cover subdomains. Do not place a wildcard inside a later domain label, use several wildcards, or supply a wildcard without a domain pattern. IP address entries cannot contain a wildcard.
Domain matching evaluates the Origin header and favors an exact domain-pattern match. Without an exact match, it selects the closest matching pattern. When exclusions overlap, examine the more specific pattern as well as the broader one before deciding which rule applies to the request.
Validate the capture before drawing conclusions
After changing the setting, confirm that the new request matches the operation under investigation. Compare Hostname and Path first, then HTTP Method and HTTP response status. Use the available context fields to separate calls that reach the same destination through different processes.
Next, inspect the fields needed for the diagnostic question. Empty body evidence at Basic or Elevated does not establish that the application sent an empty message: those levels do not include body capture. Likewise, Basic does not provide the header and query detail that Elevated adds.
If the problem concerns authentication, compare the relevant request evidence with the intended configuration. The guide to OAuth profiles for outbound integrations addresses that neighboring setup question. Choose a capture level deliberately before collecting headers or message content that may contain sensitive values.
Close the investigation with a short record of the affected operation, chosen level, reproduction, observed fields, and restored settings. Keep conclusions tied to the captured call. A successful test for one method does not establish how a different method behaved during the original failure.
Questions about outbound logging investigations
Does a response status prove that the business operation succeeded?
Use it as one part of the evidence. A transport result and the intended business outcome answer different questions. When the issue concerns returned content, define the expected outcome before deciding whether body capture is needed.
What should a handoff to another investigator contain?
Include the affected operation, test time, diagnostic question, and remaining uncertainty. Record which settings still need restoration. This lets the next investigator continue the same test instead of broadening collection simply because the original purpose was unclear.
Should a troubleshooting ticket contain the complete captured body?
As a handling practice, include the smallest relevant excerpt and remove sensitive values before sharing it. Preserve enough context to explain the failure without distributing unrelated business data to everyone who can read the ticket.
How should two capture attempts be compared?
Keep the operation and test input consistent, and record which configuration changed between attempts. Changing the destination, input, and logging choice together makes it harder to explain why the evidence differs. Resolve one uncertainty at a time.