Audit Log – Store Log

Code Banner

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

One response to “Audit Log – Store Log

  1. Pingback: Audit Logging | qlikcentral·

Leave a comment