Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Hi everyone,
I'm currently working on retrieving user data related to the export of data, images, or PDFs in our Qlik Sense Cloud environment. I have set up a connection for auditing purposes as per the guidelines in the Qlik Developer Portal, but I am struggling to find the specific information regarding user exports.
Despite setting up the audit connection, I'm unable to locate or retrieve logs that detail when users export data, images, or PDF files.
Here’s what I have tried:
Could anyone provide guidance or share examples on how to properly query the Qlik Sense Audit API to capture these specific user activities? Any tips on the types of filters or API endpoints to use would be greatly appreciated.
Thank you in advance for your help!
Best Regards,
Nick
Hi @Nick13 ,
please test the following:
and confirm you are seeing the information (I suggest you use Firefox, since it has a native json parser, or install an extension like "JSON Formatter")
If you do, then it means the APIs are working as expected, and that means it's a problem with your connection settings when querying the APIs from other places.
Hi @Nick13
what about querying
/api/v1/audits?source=com.qlik%2Freporting-service ?
Once you do that, the "tags" and "template" sections will give you details about the operation.
For instance:
"tags": [
"sense-dialog.download"
],
means that the users started a download, with
"templateType": "sense-image-1.0",
telling you that it was an image.
Hi @Daniele_Purrone ,
I followed the current setup to access data, but I'm not receiving any details for the 'tags' and 'templateType' fields from the API. Additionally, I'm wondering if I need to adjust the connection settings too, as the results aren't what I expected. Here’s a breakdown of my current REST connection setup:
Could there be something missing or incorrect in this setup that's causing the issue with the missing fields?
Hi @Nick13 ,
please test the following:
and confirm you are seeing the information (I suggest you use Firefox, since it has a native json parser, or install an extension like "JSON Formatter")
If you do, then it means the APIs are working as expected, and that means it's a problem with your connection settings when querying the APIs from other places.
Hi @Daniele_Purrone ,
I appreciate you passing this along. The API is functioning correctly; I only needed to adjust the connection slightly to receive the expected data.
Apologies for reaching out again, but during my testing of chart downloads, both as an image and as a PDF, I noticed they both return the same templateType, "sense-image-1.0". Is there a method to distinguish between the two?
Hi @Nick13 ,
no need to apologize! I'm afraid that, since we use the same renderer, we don't distinguish pdfs from images.
If you think we should specify that, please, suggest an idea to our product team.
Hi @Daniele_Purrone ,
I understand, thank you for the clarification. While it's unfortunate that there isn't currently a distinction between pdfs and images, as this prevents us from gaining a deeper understanding of our user's export behaviour.
Nonetheless, I appreciate your support.
Best Regards,
Nick