How to count times of runtime access among application scopes

shintaro
ServiceNow Employee
ServiceNow Employee

 

Hi, I'd like to know how to count times of runtime access among application scopes like below examples.

  • "Execute API " Operation on Source Scope = [x_snc_acme_app01] to Target Scope [Employee Center] -> 100 times
  • "Read" Operation on Source Scope = [x_snc_acme_app01] to Target Scope [Global] (sys_attachment) -> 200 times

In my understanding I cannot see the times of runtime access among application scopes by just checking records with "status = Allowed" in [sys_scope_privilege] . 

Which log tables and/or files realize this requirement? I believe there are log tables and or node log files because instance has a capability to track runtime access in background. 

 

Any ideas?

1 ACCEPTED SOLUTION

@shintaro 

you need to look on the message field and possibly do some string manipulation and grab the content and then increment the counter each time

If my response helped please mark it correct and close the thread so that it benefits future readers.

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader

View solution in original post

3 REPLIES 3

Ankur Bawiskar
Tera Patron
Tera Patron

@shintaro 

you need to check system logs for this and no direct way to handle this.

If my response helped please mark it correct and close the thread so that it benefits future readers.

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader

Thank you for your quick response!

I'd like to know which field I should see to know "Target scope". As far as I see a list of System log, "App Scope" filed seems "Source scope" with , but I was not sure which field includes "Target scope". Should I need to analyze "Context map" field or something? If possible please tell me how to analyze System log for my requirement. Thanks!

@shintaro 

you need to look on the message field and possibly do some string manipulation and grab the content and then increment the counter each time

If my response helped please mark it correct and close the thread so that it benefits future readers.

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader