Best way to cleanup logging

javis
Giga Expert

Hi all,

I'm working on cleaning up our logs. It has come to the point where there are too many unused logging and we have to find the source of all those logs. Does anyone know a fast and efficient way to find where the source of these logs come from? Currently I do not have enough info on in the logs to pin-point exactly where the logs are.

Thanks in advance!

1 ACCEPTED SOLUTION

Chuck Tomasi
Tera Patron

Hi James,



I'm going to assume you are looking for scripts that use gs.log() statements. Finding the logs themselves is pretty easy under the System Logs application menu.



I invite you to do a global code search using Studio's code search feature and look for gs.log() statements.



Using Code Search to make developing on the platform easier


View solution in original post

6 REPLIES 6

Chuck Tomasi
Tera Patron

Hi James,



I'm going to assume you are looking for scripts that use gs.log() statements. Finding the logs themselves is pretty easy under the System Logs application menu.



I invite you to do a global code search using Studio's code search feature and look for gs.log() statements.



Using Code Search to make developing on the platform easier


Thanks, Chuck!



Playing around with Code Search makes it easier to find where log statement are in the system! This will definitely make my job easier!


Pradeep Sharma
ServiceNow Employee
ServiceNow Employee

Hello James,



You can find with the help of code search.


Please refer below link for more info.Using Code Search to make developing on the platform easier


Pradeep,



Do you know a faster way to find where a reference of a field can be found throughout the system? I am trying to find every reference of a custom field in the system. Whether it is referenced in a script include, BR, Client scrit, Ui action etc. Does ServiceNow make that easier for us?