Skip to page contentSkip to chat
ServiceNow support
    • Community
      Ask questions, give advice, and connect with fellow ServiceNow professionals.
      Developer
      Build, test, and deploy applications
      Documentation
      Find detailed information about ServiceNow products, apps, features, and releases.
      Impact
      Accelerate ROI and amplify your expertise.
      Learning
      Build skills with instructor-led and online training.
      Partner
      Grow your business with promotions, news, and marketing tools
      ServiceNow
      Learn about ServiceNow products & solutions.
      Store
      Download certified apps and integrations that complement ServiceNow.
      Support
      Manage your instances, access self-help, and get technical support.
Turning off Audit on CMDB Relations - Support and Troubleshooting
  • >
  • Knowledge Base
  • >
  • Support and Troubleshooting (Knowledge Base)
  • >
  • Turning off Audit on CMDB Relations
KB0817973

Turning off Audit on CMDB Relations


1962 Views Last updated : Apr 8, 2025 public Copy Permalink
KB Summary by Now Assist

Issue

Certain relation fields are captured in Audit History in ServiceNow, creating additional performance lag on activity fields and creating potentially unnecessary and not particularly helpful data to be displayed in the Audit History. This applies also to other features that use that audit history such as CMDB Baseline Diff and Activity Stream.

Cause

The Audit Relation functionality is partially controlled by a system property called 'glide.ui.relations_trace'. 

This is only used when new relations are being added and it does not control when relations are removed (deleted), because records are added to sys_audit_relation by the audit delete code in the platform. When a record is deleted, and it has non-nil reference fields, then records are added to sys_audit_relation (and hence into the history) to record the deletion of these values.

For example, if you have a change_request which has a value in its "cmdb_ci" field, or values in its "Affected CIs" related list, then deletion records for both "task" and "cmdb_ci" are added to sys_audit_relation table due to the "task_ci" record(s) which reference both the "task" and the "cmdb_ci" being deleted.

Resolution

If you feel you need to do this, please use system property called 'glide.ui.relations_trace' to disable the addition of new relational audit data on cmdb_ci.

Name = glide.ui.relations_trace
Type = String (comma-separated valued'
Value = "cmdb_ci,task,kb_knowledge" (by default)

You will have to create this property yourself, and then remove cmdb_ci/task from the list depending on your needs.

Note : Please test any changes to this property thoroughly on your sub-production environments prior to applying them on your production instance. 

To be able to suppress the creation of sys_audit_relation records when a relationship is deleted or changed then the boolean dictionary attribute "no_audit_relation" would have to be added to the sys_dictionary field's attributes that you want to suppress.

For example, to suppress the results of a "task_ci" record being deleted the "no_audit_relation=true" attribute/value would have to be added to both the "task" and "cmdb_ci" reference fields' attributes on the "task_ci" table.


The world works with ServiceNow.

Sign in for more! There's more content available only to authenticated users Sign in for more!
Did this KB article help you?
Did this KB article help you?

How would you rate your Now Support digital experience?

*

Very unsatisfied

Unsatisfied

Neutral

Satisfied

Very satisfied

Very unsatisfied

Unsatisfied

Neutral

Satisfied

Very satisfied

What can we improve? Please select all that apply.

What are we doing well? Please select all that apply.

Tell us more

*

Do you expect a response from this feedback?

  • Terms and conditions
  • Privacy statement
  • GDPR
  • Cookie policy
  • © 2025 ServiceNow. All rights reserved.