To automatically delete old transaction data from your Elasticsearch database, you must set a retention period.
Before you begin
What you should know
- When used disk space on the drive that contains the Elasticsearch database exceeds 90% capacity, the Elasticsearch indices stop accepting new data. Incoming data is queued in the SQL database until the indices are unblocked and the data recovery process moves the queued transaction to the Elasticsearch database.
- The retention period defines how long to keep data in the Elasticsearch database.
- The cleanup interval is user-configurable. By default, cleanup occurs on the first of each month.
- The data for the previous month is kept until the current month is over.
Procedure
Example
This means that during the month of February, the data for the current and previous month are kept. On March 1, all data from the previous month of February is kept, and the data from January is deleted.