- 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 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:03 AM
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!

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