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

Pradeep Sharma
ServiceNow Employee
ServiceNow Employee

The only way as of today(easy way) is with help of Code search.


If you haven't already, get an enhancement request in. While it's no guarantee, our product managers DO read them.


Enhancement requests: Using HI to tell us how you would improve the ServiceNow product


Sebastian L
Mega Sage

Hi,

 

I have developed a small widget that finds logs that are uncommented and by a click you can either comment it out or your can delete it. You can search for your own logs or you can search through the whole system. 

 

I have uploaded it to share here - if you are still interested 🙂 


Best regards,
Sebastian Laursen