Report to show current logged in users in the instance
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-13-2017 08:06 AM
Hi All,
I have a requirement to create a report to display currently logged in users in the instance. Would like to create a dashboard to monitor the logged in users from specific group. Is there a way to create this report,.? ctomasi pradeepksharma nathanfirth
Note : i have tried "Logged in users" module and it shows only users from my node and not all the node.
- Labels:
-
Analytics and Reports
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-26-2021 09:58 AM
I've written the following server side script that iterates through all nodes and captures the sum of all users for each node:
var total_users = 0;
var diag = new Diagnostics();
while (diag.nextNode()) {
var diagNode = diag.getNode();
var ss = diagNode.stats.sessionsummary;
if(ss){
total_users += parseInt(diagNode.stats.sessionsummary["@logged_in"]);
}
}
gs.info(total_users);
You can put this into a UI Page (attached xml) and add it to a dashboard. The attached UI page will look similar to the single score report "Logged in users" which is a count of all records in the v_user_session table (showing all logged in users for the same node you are on):
Hope that helps!
Thanks,
- Dom
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-28-2022 06:37 AM
Hi Dom,
I need to show the list of logged-in and logged-out users. Can you please provide me a code to fetch the details or any hint?
Regards,
Shubham Singh