Skip to content

How to manually update the retention policy of an index (Quickwit 0.8) #5513

Answered by guilload
guilload asked this question in Q&A
Discussion options

You must be logged in to vote

The API for updating the retention policy will be available in Quickwit 0.9. For versions 0.8 and below, you can manually update the retention policy by editing the metastore file (if using a file-backed metastore) or running a SQL query (if using PostgreSQL).

File-backed metastore

  1. Stop the metastore instance.
  2. Locate the metastore file for your index at <metastore URI>/<index ID>/metastore.json.
  3. Open the file in a text editor and find the index.index_config.retention section.
  4. Set the period to the desired retention duration.
  5. If the retention object is missing or set to null, you can create it with the following structure:
"retention": {
  "period": "30 days",
  "schedule": "daily"
}
  1. Sa…

Replies: 1 comment 2 replies

Comment options

guilload
Oct 22, 2024
Maintainer Author

You must be logged in to vote
2 replies
@xrl
Comment options

@guilload
Comment options

guilload Nov 1, 2024
Maintainer Author

Answer selected by guilload
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants