20-08-19 09:50 AM
22-08-19 02:56 AM
22-08-19 08:49 AM
23-08-19 07:40 AM
25-08-19 05:33 PM
06-09-19 11:24 AM
16-09-19 12:10 PM
Hi,
login event without logouts IMO means Blue Prism app crashes when user is logged in.
We are using this kind of select to determine possible logged in users (PossiblyLoggedIN > 0 - most probably user is logged in)
-- change this
use yourBPdatabaseName;
-- using last two days login data
declare @EvDate as date
set @EvDate = GetDate()-2
SELECT
USR.username
, EvLogin = (SELECT COUNT(A.[eventid]) from [dbo].[BPAAuditEvents] A where A.gSrcUserID = USR.userid And a.sCode = 'L001' and a.eventdatetime > @EvDate)
, EvLogout = (SELECT COUNT(A.[eventid]) from [dbo].[BPAAuditEvents] A where A.gSrcUserID = USR.userid And a.sCode = 'L002'and a.eventdatetime > @EvDate)
, PossiblyLoggedIN = (SELECT COUNT(A.[eventid]) from [dbo].[BPAAuditEvents] A where A.gSrcUserID = USR.userid And a.sCode = 'L001' and a.eventdatetime > @EvDate) - (SELECT COUNT(A.[eventid]) from [dbo].[BPAAuditEvents] A where A.gSrcUserID = USR.userid And a.sCode = 'L002'and a.eventdatetime > @EvDate)
FROM [dbo].[BPAUser] USR
where username is not null