COGNOiSe.com - The IBM Cognos Community

Legacy Business Intelligence => COGNOS Transformer => Topic started by: cognosgem on 16 Jul 2007 04:25:27 PM

Title: Storing Cube build logs into database or CSV
Post by: cognosgem on 16 Jul 2007 04:25:27 PM
Hi, I would like to store cube start date, time and end date, time from cube build log file into a database table or csv file on daily basis. We would like to analyze the history of cube build times by cube and date over a period of time.

Anyone has any suggestions? Your help is highly appreciated.
Title: Re: Storing Cube build logs into database or CSV
Post by: jeemalif on 17 Aug 2007 08:10:12 PM
Although I don't know of any direct way, but the way we have implemented is by adding small pieces of codes in our scripts to add a record at the end of the builds which stores the start and end times, along with the exit status. To make the task easier, we basically created a generic cube build script which would store these information.

Another alternative is, if you are using Oracle 9i or later, to create an external table and copy the log files to the source of this table. But it may require a lot of cleanup and maintenance as well.

--Javed
Title: Re: Storing Cube build logs into database or CSV
Post by: PJQ on 19 Feb 2008 05:55:21 PM
There's a document in the Cognos Knowledge Base called "Practical Guide to Transformer in Production". Sorry I don't have a link to it.
It contains a chapter on working with the Transformer log, suggesting an import to spreadsheet and sorting on log categories.
Title: Re: Storing Cube build logs into database or CSV
Post by: almeids on 20 Feb 2008 08:39:29 AM
As suggested there's nothing built in to do this, pull what you need out of the log file after the fact with your preferred scriptable tool and insert it into a homegrown database table.