Prabakaran Rangasamy Posted March 15, 2023 Share Posted March 15, 2023 I would like to build a query to get long-running reports. For example, I need to find the reports that are running for more than 20 minutes. How can I get these details from the action log? Link to comment Share on other sites More sharing options...
Olivier Keugue Tadaa Posted March 17, 2023 Share Posted March 17, 2023 Hi Prabakaran,Could you try this ?select * from actionlogwhere log_category='scheduled_updates' and log_action= 'job_execution'and arg2='IN_PROGRESS'To set the "20 minutes" condition, you can play with the original_time and the "datatimeNow()"You can then combine the result with the JOB_INSTANCE (from Spotfire database) to get the report name (link lib_item_id with libraryId (or id2)https://docs.tibco.com/pub/spotfire_server/12.3.0/doc/html/TIB_sfire_server_tsas_admin_help/server/topics/action_log_entries.htmlHope this helpsOlivier Link to comment Share on other sites More sharing options...
Olivier Keugue Tadaa Posted March 17, 2023 Share Posted March 17, 2023 SELECT *FROM ACTIONLOGWHERE LOG_CATEGORY = 'scheduled_updates' AND LOG_ACTION = 'job_execution' AND ARG3 = 'IN_PROGRESS' Link to comment Share on other sites More sharing options...
Fredrik Rosell Posted March 20, 2023 Share Posted March 20, 2023 Adding to what Olivier wrote, are you looking for historic data - schedules that took more than 20 minutes to complete sometime in the past - or are you trying to look at scheduled jobs that are currently running? Link to comment Share on other sites More sharing options...
Prabakaran Rangasamy Posted March 20, 2023 Author Share Posted March 20, 2023 Thanks Olivier. Let me try this.. Link to comment Share on other sites More sharing options...
Prabakaran Rangasamy Posted March 20, 2023 Author Share Posted March 20, 2023 Hi Fredrik, I am looking for scheduled jobs that are currently running. Link to comment Share on other sites More sharing options...
Prabakaran Rangasamy Posted March 20, 2023 Author Share Posted March 20, 2023 Is there any way to get the report name from Action log itself. It looks like the action log table has report path. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now