Skip to main content

Hello! Can I get some guidance on how to use the log data in LeanIX for reporting purposes? At the moment I can only see how to use the factsheet data readily available in the Inventory tab, but nothing on the log details of the fact sheet.

Hi ​@selinavs,

In addition to viewing the log in the Last Update tab of each fact sheet (https://docs-eam.leanix.net/docs/collaborating-and-managing-data-in-fact-sheets#reviewing-the-fact-sheet-update-log), you can access it programatically using the GraphQL API. See here for details: https://docs-eam.leanix.net/reference/get-event-logs-for-a-fact-sheet

Hope it helps.

Cheers.


Hi ​@selinavs,

In addition to ​@Helder.Luz solutions: If you want to create the report manually and not programatically, you can export the Changelog as Excel as described here:

https://docs-eam.leanix.net/docs/conduct-a-data-snapshot


Hi ​@Thomas Schreiner  and ​@Helder.Luz ! Thank you so much that was really helpful! I’ll probably start with the excel export to create a draft PowerBI report and then use the api! Thank you, the only issue is that we are trying to mostly use LeanIX reporting. Would either of you have documentation on how to use the logs to create reports in LeanIX?


Hi ​@selinavs ,

In addition to what ​@Thomas Schreiner  has written, you can actually also extract snapshots programmatically using the pathfinder Rest API (LeanIX OpenAPI Explorer)

We have done it to replicate audit logs to our data platform on Azure.
It requires the following step:

Step 1 = call the /exports/fullexport endpoint to create the log file 

Step 2 = call the /exports endpoint to detect when you export has been generated

Step 3 = call the /exports/download endpoint to get the export file

Step 4 = we created an Azure function using Python code to extract from the export file the information we needed.

We have never found any feature in the leanIX reporting module that can use those logs.

 


…and if you don’t want to develop ​@Didier.Nowak‘s logic yourself, it‘s already available in the Python client of LeanIX Automation Platform. It‘s this function:

https://doc.aronis.de/utils/leanix_client.html#LeanIXClient.download_snapshot
 

So many options - I’m sure you will find the one that works best for you :-)


Reply