Amazon anytime storage8/10/2023 ![]() ![]() "priority": 100, #Priority can be set from 0 to 100 "index_patterns": [ #This ISM policy attaches to all indices for the index pattern and you can mention your index pattern here "name": "delete", #Indices moved to delete state "min_index_age": “50m” #Note that after 50 minutes index will transit from hot_state to delete state "default_state": "example_hot_state", #Default state "description": "A simple default policy that deletes old unused indices“, The following example ISM policy deletes indices after 50 minutes: PUT _plugins/_ism/policies/delete_ism_policy The rollover operation rolls over a target to a new index when an existing index meets the defined condition. For example, you can use a rollover operation and an ISM policy to automate deletion of old indices based on conditions, such as index size. With ISM, you can define custom management policies that help you maintain issues, such as low disk space. ISM allows you to automate routine tasks and then apply them to indices and index patterns in OpenSearch Service. To delete multiple indices, run the following command: DELETE cwl-index-* Use ISM to manage low storage space To delete single indices, run the following command: DELETE You can check the indices creation date with the following command: GET _cat/indices?h=h,s,i,id,p,r,dc,dd,ss,&s=:desc
0 Comments
Leave a Reply.AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |