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 Reply

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

WordPress.com Logo

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

Twitter picture

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

Facebook photo

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

Google+ photo

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

Connecting to %s