How do you tell in the api if an index is frozen?
Will freeze/unfreeze be added to curator?
Thanks
How do you tell in the api if an index is frozen?
Will freeze/unfreeze be added to curator?
Thanks
Hi @rugenl,
You can use Get Index API (https://www.elastic.co/guide/en/elasticsearch/reference/current/indices-get-index.html) to know if your index is in a frozen state.
The response for the Get Index API would contain the index settings, where you can find the status for frozen setting with a boolean value true in case it is frozen. In case the index is not frozen then the setting might be missing from the response JSON.
Example response:
{
"_your_index_name" : {
...
...
"settings" : {
"index" : {
...
"frozen" : "true", <- This denotes whether your index is frozen.
...
}
}
}
}
I think curator yet does not support freeze/unfreeze API and you may want to open an issue (https://github.com/elastic/curator). You can raise PR for adding the support in case you are interested to contribute.
Hope this helps.
Thanks and Regards,
Yogesh
© 2020. All Rights Reserved - Elasticsearch
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant logo are trademarks of the Apache Software Foundation in the United States and/or other countries.