AX2008

Purging audit data

Over time, the audit data builds up in the audit database for the system. Audit data should be purged periodically to help maintain overall system performance.

You can purge audit data by using the System Data Purge Scheduler job. This is a system job that is created and run automatically within each system.

To purge audit data, edit the system job to define a number of days of audit data to keep. Each time the job runs, it will purge audit data that is older than the specified number of days. By default, the job is set to 15 days. There are two settings that control purging audit data:

  • Number of days to keep system history: This controls purging audit data for system activity, and document versions.
  • Number of days to keep table history: This controls purging audit data for table auditing.

To access the system job, go to Administration > Manage > Scheduler. On the Scheduled Jobs tab, double-click the System.SystemDataPurge job to open it and edit the settings.