Skip to main content

         This documentation site is for previous versions. Visit our new documentation site for current releases.      

This content has been archived and is no longer being updated.

Links may not function; however, this content may be relevant to outdated versions of the product.

How to count logged in users with the pr4_log_usage table

Updated on September 20, 2019


A developer asks:

How can I programmatically count the number of logged in users on a single node and across all nodes that comprise my system?



Suggested Approach

Information about logged in users, including how long and often they're logged in, is written to database table pr4_log_usage.  The data you seek can be gleaned from querying the table, whose columns are fully exposed. 

To prevent excessively long query times against the very large pr4_log_usage table, make sure to include date/time selection criteria in your query.


Pega Platform 7.1.1 - 7.4 Reporting Financial Services Healthcare and Life Sciences Insurance Communications and Media Government Healthcare and Life Sciences Consumer Services Consumer Services Manufacturing Consumer Services

Have a question? Get answers now.

Visit the Support Center to ask questions, engage in discussions, share ideas, and help others.

Did you find this content helpful?

Want to help us improve this content?

We'd prefer it if you saw us at our best. is not optimized for Internet Explorer. For the optimal experience, please use:

Close Deprecation Notice
Contact us