how to get the duration of the logged in user session ?I

bharatkumar
Kilo Explorer

I tried using the events login and logout time. But i have lot of login events with less logout events. so i couldn't calculate the accurate. Is there a possibility to get the user session duration directly?

3 REPLIES 3

amlanpal
Kilo Sage

Hi Bharat,



There is a OOB 'Logged in Users' table available which contains all the data regarding user's session. Please find the details here: http://wiki.servicenow.com/index.php?title=Managing_User_Sessions#gsc.tab=0



I hope this helps. Please mark correct/helpful based on impact


Hi Bharat,



Just for added Information:


You can navigate to the System Logs-->Client Transactions and find out the users by Created by. You also can find unique Session ID for the particular user when he/she has logged in and does any transaction. From there you can assume the last transaction time. You can also find out 'Last Login' field in the user table and track any user from there.


Also you may find the Logout Details navigating to System policy-->Events-->Event log-->Search Name as 'logout'. In the Parm1 section you will find the User ID.


find_real_file.png



I hope this helps. Please mark correct/helpful based on impact


Hi bharatkumar,



Did you able to have a look at my last response?


If I have answered your question, please mark my response as correct so that others with the same question in the future can find it quickly and that it gets removed from the Unanswered list.


If you are viewing this from the community inbox you will not see the correct answer button.   If so, please review How to Mark Answers Correct From Inbox View