Hi Richard,
Auditing has always been needlessly difficult in Cognos.
I also use the COGIPF_RUNREPORT table to do this counting. What I do is:
count ( distinct [Request ID] + [Report name] )
where I perform a trim on the [Report name].
In case of [Report type] <> 'Exploration queryservice' then [Request ID] is: [Audit].[Run Reports].[Request ID]
But in case [Report type] = 'Exploration queryservice' the [Request ID] is as follows:
substring ( [Audit].[Run Reports].[Request ID]; 1 ; position ( ':'; [Audit].[Run Reports].[Request ID] ) )
+
substring (
[Audit].[Run Reports].[Request ID];
position ( ':'; [Audit].[Run Reports].[Request ID] ) + 1 ;
position ( ':';
substring ( [Audit].[Run Reports].[Request ID];
position ( ':'; [Audit].[Run Reports].[Request ID] ) + 1
)
)
)
What I noticed is that the RequestID for a dashboard contains two colons. When you take the part before the second colon,
you have the unique request ID for the dashboard. I have discovered it myself, but I'm pretty sure it is correct.
Example:
-157673f9:174f853e0d3:7bdd
Convert it to:
-157673f9:174f853e0d3:
------------------------------
Thomas van der Meer
------------------------------
Original Message:
Sent: Mon February 01, 2021 11:43 AM
From: Richard Chester
Subject: Counting Number of Dashboards Accessed
I have a client who has recently begun deploying Dashboards. I was asked to run a query using the Audit database to gather some usage statistics.
What I've noticed is that when a user opens a dashboard many records are written to the COGIPF_RUNREPORT table. As they interact with the dashboard, many more records are added there. These appear to track the execution of the individual Visualizations on the Dashboard tabs.
What I'm looking for is a way to just count "opened a dashboard" events. I can count unique dashboards listed in the RUNREPORT table by session. But if someone opens the same dashboard 3x in the same session I can't easily tell. Ideally I'd count that as 3 uses, but today I think I'm stuck counting that as 1 use.
An examination of COGIPF_ACTION has not yielded any records that appear to definitively identify that a user has opened a dashboard either.
Has anyone come up with a clever way to identify each Dashboard "open" to come up with accurate usage statistics?
Thank you!
Rich
------------------------------
Richard Chester
Director of Business Intelligence
LPA Software Solutions
------------------------------
#CognosAnalyticswithWatson