Join the #BuildWithBuildAgent Challenge! Get recognized, earn exclusive swag, and inspire the ServiceNow Community with what you can build using Build Agent.  Join the Challenge.

How to track API Usage by the Requestor?

Community Alums
Not applicable

Hello,

There is a nice dashboard located here:  System Web Services > Rest & Soap API Analytics > Usage by Requestor

It takes us to a dashboard with a drop-down to filter by the requestor, such as MID Server, or any other user account that uses the API.  It reports using the table API Transaction Stats (sys_api_stats).  I wanted to make my own report that shows multiple requestors side-by-side, but when I look at that table, I don't see the Requestor, and all records are created/updated by either Admin, or Guest.  Is there a way I can find the field that the drop down is using to filter that table by the requestor, such as MID Server?

Here is the dropdown on the Dashboard

find_real_file.png

Here are the available columns on the API Transactions Stats table

find_real_file.png

1 ACCEPTED SOLUTION

Harshad Wagh
Tera Guru

Hi Dustin,

 

The fact table behind this dashboard is sys_api_stats_requestor, this will help you to build your custom one.

 

hope this helps!

 

Thanks

Harshad

View solution in original post

1 REPLY 1

Harshad Wagh
Tera Guru

Hi Dustin,

 

The fact table behind this dashboard is sys_api_stats_requestor, this will help you to build your custom one.

 

hope this helps!

 

Thanks

Harshad