Removing sensitive information from audit log

samadam
Kilo Sage

I have a requirement to remove sensitive info from audit log, If there is sensitive information found and removed I want clean up the audit log so it wont be displayed. I have a field to identify if sensitive info is being removed. How can I accomplish this on every record that has this scenario. Every time the flag is checked I want to be able to remove the audit log which is already logged before and the current changes not to be logged. I looked at Edit activity log additional commentsag /record is identified?

Thank you

4 REPLIES 4

Raju Koyagura
Tera Guru

Yes, you have to write BR on updtae of that sensitive flag. In that BR you should create glide record for the audit history table and query the info which you want to remove.



Pradeep Sharma
ServiceNow Employee
ServiceNow Employee

Hi Sam,



The below blog should answer your question.


Delete or Update Activity log and Journal Field Entries - ServiceNow Guru


samadam
Kilo Sage

Thanks a lot for all the information, I will try it out.


From all the information it seems like the better way to do this is through UI action, If I want to do this in a BR I don't see any easier way to identify which history/activity log needs to be deleted/updated. Any thoughts on if this can be done?



Thanks