Skip to main content
Announcements
Accelerate Your Success: Fuel your data and AI journey with the right services, delivered by our experts. Learn More
cancel
Showing results for 
Search instead for 
Did you mean: 
ShaneMichelon1
Partner - Contributor II
Partner - Contributor II

Accessing Detailed Reload Logs using Qlik Automation

Hi.

In Qlik Enterprise SaaS, you can see the reload history of an app.  When you look at the detail, there is an option to download the reload log, which has timestamps on each step.  In order to do some automated performance monitoring, I was wondering if there is any way to access this detail from Qlik Automation?  I have been able to access the summary of the reload using the get reload record block, but not the detailed log file.

Any thoughts?

Labels (2)
5 Replies
Daniele_Purrone
Support
Support

Hi @ShaneMichelon1 

the detailed logs can be accessed via this API call:

https://TENANT.REGION.qlikcloud.com/api/v1/apps/APPID/reloads/logs/RELOADID 

So, you should be able to use the "RAW API" blocks to get what you need:
https://community.qlik.com/t5/Official-Support-Articles/How-to-use-the-Raw-API-Request-blocks-in-Qli... 

Daniele

 

Daniele - Principal Technical Support Engineer & SaaS Support Coordinator at Qlik
If a post helps to resolve your issue, please accept it as a Solution.
Daniele_Purrone
Support
Support

Hi @ShaneMichelon1 ,

i have tested this and it works:

{"blocks":[{"id":"D1A8C9BF-3E56-4DFF-9AE5-671327C860B0","type":"StartBlock","disabled":false,"name":"Start","displayName":"Start","comment":"","childId":"EF6C586A-700B-4DD8-A811-B5C2B716C3F3","inputs":[{"id":"run_mode","value":"manual","type":"select","structure":{}}],"settings":[],"collapsed":[{"name":"loop","isCollapsed":false}],"x":0,"y":0},{"id":"7A4EB57F-63E3-4281-8431-18D9A638121E","type":"EndpointBlock","disabled":false,"name":"rawAPIRequest","displayName":"Qlik Cloud Services - Raw API Request","comment":"","childId":null,"inputs":[{"id":"4add8960-2078-11ec-be2c-7fc55d771fe6","value":"apps/aaaaaaaaa-bbbb-cccc-dddddddddddd/reloads/logs/{$.listReloads.item.id}","type":"string","structure":[]},{"id":"3b992a40-2072-11ec-9f0e-ed01586a7e1b","value":"3ba1eed0-2072-11ec-aa67-f118ee53373a","type":"select","displayValue":"GET","structure":[]},{"id":"3b8b9090-2072-11ec-8c77-5195fbb0ca65","value":[{"key":null,"value":null}],"type":"object","mode":"keyValue","structure":[]},{"id":"993585d0-2839-11ec-b431-df4deed6c1ae","value":[{"key":null,"value":null}],"type":"object","mode":"keyValue","structure":[]}],"settings":[{"id":"blendr_on_error","value":"stop","type":"select","structure":[]},{"id":"cache","value":"0","type":"select","structure":[]},{"id":"automations_censor_data","value":false,"type":"checkbox","structure":[]}],"collapsed":[{"name":"loop","isCollapsed":false}],"x":0,"y":280,"datasourcetype_guid":"61a87510-c7a3-11ea-95da-0fb0c241e75c","endpoint_guid":"3b75dd80-2072-11ec-9043-3b2aff6123af","endpoint_role":"get"},{"id":"EF6C586A-700B-4DD8-A811-B5C2B716C3F3","type":"EndpointBlock","disabled":false,"name":"listReloads","displayName":"Qlik Cloud Services - List Reloads","comment":"","childId":null,"inputs":[{"id":"f287df70-e713-11ea-b5c2-9fdc86b669cb","value":"aaaaaaaaa-bbbb-cccc-dddddddddddd","type":"string","structure":{}}],"settings":[{"id":"maxitemcount","value":"1","type":"string","structure":{}},{"id":"blendr_on_error","value":"stop","type":"select","structure":{}},{"id":"cache","value":"0","type":"select","structure":{}},{"id":"automations_censor_data","value":false,"type":"checkbox","structure":{}}],"collapsed":[{"name":"loop","isCollapsed":false}],"x":0,"y":280,"loopBlockId":"7A4EB57F-63E3-4281-8431-18D9A638121E","datasourcetype_guid":"61a87510-c7a3-11ea-95da-0fb0c241e75c","endpoint_guid":"b3239a30-e713-11ea-be5a-1f4e73bc4bd3","endpoint_role":"list"}],"variables":[]}

 
save this code as a .json file and then upload the workspace to an empty automation.
You will need to replaced the app id ("aaaaaaaaa-bbbb-cccc-dddddddddddd") in both blocks.
You can also download the json file from here: https://files.qlik.com/url/dpxhggsuk7evqzvt

Please, let me know if this works for you, so that I can create a proper support article.

Daniele - Principal Technical Support Engineer & SaaS Support Coordinator at Qlik
If a post helps to resolve your issue, please accept it as a Solution.
ShaneMichelon1
Partner - Contributor II
Partner - Contributor II
Author

Thanks Daniele.  I'll give it a go.  But looking at your sample JSON, it doesn't look like a reload log with timestamps?

Daniele_Purrone
Support
Support

Hi @ShaneMichelon1 ,

I can confirm that the result will be the full log with timestamps

Daniele_Purrone_0-1684306207224.png

 

Daniele - Principal Technical Support Engineer & SaaS Support Coordinator at Qlik
If a post helps to resolve your issue, please accept it as a Solution.
shelly23
Contributor
Contributor

Currently, Qlik Automation does not provide direct access to the detailed reload logs. A summary of the reload is provided by the Get Reload Record block, but access to the detailed log file containing timestamps for each step is not made available.

You can, however, take a different route to automate performance monitoring.

Here's a recommendation:

Qlik Management API

Custom Logging