05/05/2023 02:24 PM
We built an analytic for SIEM integration and while it worked great for a few days it has been sputtering lately and we now receive gateway time-out more ofen than not.
Here is the SQL statement used:
select ua.TYPEOFACCESS as 'Object Type',ua.ActionType as 'Action Taken',u.username as 'Accessed By', ua.IPADDRESS as 'IP Address',ua.ACCESSTIME as 'Event Time',ua.DETAIL as 'Message' from users u , userlogin_access ua, userlogins l where l.loginkey = ua.LOGINKEY and l.USERKEY = u.userkey and ua.AccessTime >= (NOW() - INTERVAL ${timeFrame} Minute) and ua.Detail is not NULL
I don't see anything especially nasty in there. The same analytic in v1 is responding without any issues.
I deleted the v1 analytics thinking there might be a conflict but it does not seem to help
Solved! Go to Solution.
05/05/2023 02:25 PM - edited 05/05/2023 02:26 PM
Request body:
05/05/2023 02:29 PM
I did find this in the logs, which could explain the issue:
05/05/2023 06:50 PM
what is count of analytics records
05/08/2023 06:04 AM
It depends on the number of available items in userlogin_access ua and userlogins for the given timeframe.
05/08/2023 07:25 AM
Restarting the service appears to have greatly helped, I will keep monitoring
05/11/2023 07:53 AM
Marking this as answered. Service restart has proved to be the solution