Set up auditing for a table or field in ServiceNow
Configuring auditing for a table or field in ServiceNow
Auditing in ServiceNow is crucial for maintaining data integrity, security, and compliance. Auditing at the field level, rather than the table level, is generally preferred as it allows for more granular control, reduced storage overhead, and better performance, while still providing valuable insights into data changes. Auditing at the table level can lead to unnecessary data storage and potentially impact performance. Therefor, it's necessary to enable the auditing at field level.
TLDR
Configuration
Procedure
- Log in as administrator
- Navigate to System Definition > Dictionary [sys_dictionary]
- Find the record of the table whose type is 'Collection'
- Tick the Audit field of this record
- Enter 'audit_type=whitelist' in the Attributes field
- Save
- Find the record of the specific field of the table
- Enter 'audit=true' in the Attributes field
- Save
Testing
The normal auditing mechanism will record in the auditing tables (such as sys_audit) changes in the value of a field on a specific table.
For instance, with auditing of the State field on the Incident table enabled, changing the value of the State field on an Incident record might produce an audit record like the following:
- Log in as administrator
- Navigate to Audit table [sys_audit]
- Find the record of the specific field of the table
- Analyse the audit record
How to audit a specific field of a table
How to use field inclusion list with table field auditing
Exclusion list Auditing - How to activate/deactivate auditing for a specific table or field
Use update sets to configure auditing for a table or specific fields.
Other resources:
That's a wrap!
Comments
Post a Comment