Audit Log – Store Log

Code Banner

Stores the audit log into the appropriate folder (ensure you set the variables as required)





//**************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

LOAD * From [$(vQVDPath)$(vRootFolderPath)AuditLog\$(vAuditLog_Application)_$(QVDDateAppendix).qvd]  (QVD);


STORE * FROM [AuditLog] INTO [$(vQVDPath)$(vRootFolderPath)AuditLog\$(vAuditLog_Application)_$(QVDDateAppendix).qvd]  ;

DROP Table [AuditLog];


One response to “Audit Log – Store Log

  1. Pingback: Audit Logging | qlikcentral·

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s