-
There is no API to do so in Quickwit 0.8. |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 4 replies
-
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
"retention": {
"period": "30 days",
"schedule": "daily"
}
PostgreSQLSimply run this SQL query with your desired retention settings, and the janitor will apply the changes within the next 10 minutes. UPDATE indexes
SET index_metadata_json = jsonb_set(
index_metadata_json::jsonb,
'{index_config,retention}',
'{"period": "30 days", "schedule": "daily"}'::jsonb,
true
)::text
WHERE indexes.index_id = '<index ID>'
; |
Beta Was this translation helpful? Give feedback.
-
I am using this config for backend metastore .
These are the pods running right now using helm chart.
Please guide if I am not following correct path. |
Beta Was this translation helpful? Give feedback.
-
@guilload do you get any chance to look into this. ? |
Beta Was this translation helpful? Give feedback.
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
<metastore URI>/<index ID>/metastore.json
.index.index_config.retention
section.period
to the desired retention duration.retention
object is missing or set tonull
, you can create it with the following structure: