# Archiving Audit Trail Data

To optimize performance, OvalEdge offers options to archive audit trail data:

* **Administration > Advanced Job - Audit Data Archival:** This feature enables audit trail archiving based on the Audit Data Archival Policy, which can be set in System settings.

  <figure><img src="https://lh7-rt.googleusercontent.com/docsz/AD_4nXeWb41fzTxXWyIRnjCERvzZ5OBVs9Lcdz7n8Z9Sc5H0hZcznLYIzsg62KEG0weNdyvsKdFYL3tWw0Rz7lxx8GtTL2ZSDlz9bhf3MuavjXZDF1ucKqfuuzrF-sJADJjhmB7g3KEH4Q?key=3Q1-FAinoXRbCvW1iecCwIKR" alt=""><figcaption></figcaption></figure>
* **Administration > System Settings > Audit Data Archival:** Here, Admins (with "ovaledge.role.admin") can define an archiving policy.

  <figure><img src="https://lh7-rt.googleusercontent.com/docsz/AD_4nXduXl0JniDPa8gdvdmKGZmy-NtOmxg3rOHVAOHo-70jW5Z25VKDMFqWCKjmR_zQSFsznmLEZaOWyGfkD9y_Z071FYH3Pr-0z3oYYeVQewE3HS49DSs390Q5wBXOYWXnkoodjhxA?key=3Q1-FAinoXRbCvW1iecCwIKR" alt=""><figcaption></figcaption></figure>

**Archiving Policy:**

* **Retention Period:** Users can specify how long it takes to retain logs (default: 2 years). Logs exceeding this period are automatically deleted.
* **Archive Format:** Users can choose between CSV or SQL formats for archived data.

**Audit Data Archival Configuration Details:**

* **Add Archival Policy:** Choose a table that has to be archived and the retention period in the count of days field.
* **Row Count:** Number of audit trail entries currently stored.
* **Retention Period:** Time remaining before the oldest data is deleted.
* **CSV/SQL:** Shows the chosen archive format.
* **Last Archive Date:** Displays the last date of data object archival.
* **Last Processed Date:** Displays the last date of the data object processed for the archival.
