In Enterprise Vault 14.2, the Elasticsearch indexing engine was introduced, which changed the traditional way of file system backup of indexes to Elasticsearch snapshot. In addition, PowerShell commands were introduced in 14.2 to take snapshots and delete snapshots that are no longer required. Before Enterprise Vault 14.4, the Enterprise Vault administrator had to do the expiry of the index snapshot manually. Enterprise Vault 14.4 or later has introduced the Index Snapshot Expiry feature, a way to schedule and run the expiry of index snapshots based on the age of index snapshots. The age is calculated based on the creation date of index snapshots.
The index snapshot expiry feature is disabled by default, and the Enterprise Vault administrator must configure index snapshot expiry settings to expire index snapshots automatically. The Enterprise Vault administrator must configure the days after index snapshots expire and schedule when index snapshots should expire.
Index snapshot expiry can be run immediately or scheduled for selected times. Furthermore, it can be run in normal or report mode. Unlike normal mode, in the case of report mode, index snapshots eligible for expiry are only reported and not actually deleted from the Enterprise Vault database and Elasticsearch indexing engine.
The Enterprise Vault indexing service running on the index server is responsible for deleting eligible index snapshots of that index server. Whenever index snapshots expiry runs, index snapshots from the Enterprise Vault database are first deleted and then deleted from the Elasticsearch indexing engine. In case of failure to delete from Elasticsearch indexing engine, the eventual consistency is done by indexing service by retrying 3 times (one retry a day at 12 AM). After 3 times, it will leave an orphan snapshot in the Elasticsearch indexing engine; but the index snapshot has been deleted in the Enterprise Vault database and will not be listed for the restore command.
Index snapshot expiry can be scheduled for selected times to delete expired index snapshots. Once the schedule hits, expired index snapshots will be deleted, and the index snapshot expiry report will be generated. However, if the Run in report mode option is selected, the expired snapshots will not be deleted, and only the details of index snapshots eligible for expiry will be gathered in the report.
By default, index snapshot expiry is not scheduled. To schedule index snapshot expiry, follow the below steps.




Index snapshot expiry will run at selected times on each Enterprise Vault index server, and an index snapshot expiry report will be generated on each Enterprise Vault index server in that Enterprise Vault site.
Note: Select the Never option from the schedule grid to disable index snapshot expiry.
Index snapshot expiry can be run immediately in the normal mode or the report mode by using the Run Now option. In normal mode, eligible index snapshots will be deleted from the Enterprise Vault database, and the Elasticsearch indexing engine and expiry report will be generated. In report mode, eligible index snapshots will not be deleted from the Enterprise Vault database and Elasticsearch indexing engine, and only an expiry report will be generated.
To run immediate index snapshot expiry, follow the below steps:



There are some Index snapshot expiry advanced settings that the Enterprise Vault administrator might have to configure if required. Following are the index snapshot expiry advanced settings:
By default, the latest index snapshot is not deleted in the index snapshot expiry run. To delete the latest index snapshot in the index snapshot expiry run, the above setting must be set to Yes.
To enable the deletion of the latest index snapshot in the index snapshot expiry run, follow the below steps.


An index snapshot expiry report is generated on each Enterprise Vault index server after the index snapshot expiry run is completed. Enterprise Vault administrator can configure the number of index snapshot expiry report to be kept, after which the older reports will be purged. The value can be between 1 to 30, and that many numbers of index snapshot expiry reports will be kept in each index snapshot expiry mode. By default, 5 index snapshot reports are kept for each index snapshot expiry mode.
To set the number of index snapshot expiry reports to keep, follow the below steps:


Enterprise Vault administrator can check: