One thing I noticed that even though indices are getting purged I still see indices older than 3 days.
We have date as creation.date.string.
Here is the query I am using to get all indices:
GET _cat/indices/catalog_1*?v&h=h,s,i,id,p,r,dc,dd,ss,creation.date.string&s=creation.date:desc
Wondering what changes needed to the above policy I posted few days back to make it work.
Example indices which are older than 3 days:
green open catalog_1_7f64fbab-6797-4047-ac79-f50a5945ba9b_test_upaj73nx_202203080206_40dbefde 6Ano0zH-QsW7PqjEyob4oA 1 2 1171 0 1.3mb 2022-03-08T02:07:32.222Z
green open catalog_1_7f64fbab-6797-4047-ac79-f50a5945ba9b_test_sha2nvq4_202203072005_4a4bc593 oh7movLcTwyWMpgoMQNFgA 1 2 1171 0 1.3mb 2022-03-07T20:07:26.270Z
Here is the explain for one of the indices:
{
"indices" : {
"catalog_1_7f64fbab-6797-4047-ac79-f50a5945ba9b_test_sha2nvq4_202203072005_4a4bc593" : {
"index" : "catalog_1_7f64fbab-6797-4047-ac79-f50a5945ba9b_test_sha2nvq4_202203072005_4a4bc593",
"managed" : false
}
}
}
Here is Elasticsearch cloud version we are using:
{
"name" : "<xyz>",
"cluster_name" : "<xuz>",
"cluster_uuid" : "<xyz>",
"version" : {
"number" : "8.0.0",
"build_flavor" : "default",
"build_type" : "docker",
"build_hash" : "<xyz>",
"build_date" : "2022-02-03T16:47:57.507843096Z",
"build_snapshot" : false,
"lucene_version" : "9.0.0",
"minimum_wire_compatibility_version" : "7.17.0",
"minimum_index_compatibility_version" : "7.0.0"
},
"tagline" : "You Know, for Search"
}