Stores the audit log into the appropriate folder (ensure you set the variables as required)
/*************************************************************************************************
AUDIT LOGGING
*/
//**************Store Audit Log*****************
IF noOfRows(‘AuditLog’) <> null() then
LET QVDDateAppendix = TimeStamp(Now(),’YYYYMM’);
if not isnull(filetime(‘$(vQVDPath)$(vRootFolderPath)AuditLog\$(vAuditLog_Application)_$(QVDDateAppendix).qvd’)) Then // Check the file exists
Concatenate(AuditLog)
LOAD * From [$(vQVDPath)$(vRootFolderPath)AuditLog\$(vAuditLog_Application)_$(QVDDateAppendix).qvd] (QVD);
ENDIF
STORE * FROM [AuditLog] INTO [$(vQVDPath)$(vRootFolderPath)AuditLog\$(vAuditLog_Application)_$(QVDDateAppendix).qvd] ;
DROP Table [AuditLog];
ENDIF
Pingback: Audit Logging | qlikcentral·