- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-18-2017 06:29 AM
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!
Solved! Go to Solution.
- Labels:
-
Best Practices
-
Scripting and Coding

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-18-2017 06:31 AM
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

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-18-2017 08:15 AM
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎11-10-2020 01:17 PM
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