Last active
September 28, 2022 18:28
-
-
Save rafael-gumiero/a553cf1b41b5fac6ce48151ddb34ad63 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| GET _plugins/_ism/policies/hot-ultrawarm-cold-delete-RGUMIERO | |
| { | |
| "_id" : "hot-ultrawarm-cold-delete-RGUMIERO", | |
| "_version" : 10, | |
| "_seq_no" : 6718, | |
| "_primary_term" : 1, | |
| "policy" : { | |
| "policy_id" : "hot-ultrawarm-cold-delete-RGUMIERO", | |
| "description" : "A simple default policy that changes the replica count between hot and cold states.", | |
| "last_updated_time" : 1654522240898, | |
| "schema_version" : 13, | |
| "error_notification" : null, | |
| "default_state" : "hot", | |
| "states" : [ | |
| { | |
| "name" : "hot", | |
| "actions" : [ | |
| { | |
| "rollover" : { | |
| "min_size" : "45gb", | |
| "min_index_age" : "1d" | |
| } | |
| } | |
| ], | |
| "transitions" : [ | |
| { | |
| "state_name" : "ultrawarm", | |
| "conditions" : { | |
| "min_index_age" : "1d" | |
| } | |
| } | |
| ] | |
| }, | |
| { | |
| "name" : "ultrawarm", | |
| "actions" : [ | |
| { | |
| "replica_count" : { | |
| "number_of_replicas" : 0 | |
| } | |
| }, | |
| { | |
| "warm_migration" : { } | |
| } | |
| ], | |
| "transitions" : [ | |
| { | |
| "state_name" : "cold", | |
| "conditions" : { | |
| "min_index_age" : "15d" | |
| } | |
| } | |
| ] | |
| }, | |
| { | |
| "name" : "cold", | |
| "actions" : [ | |
| { | |
| "cold_migration" : { | |
| "start_time" : null, | |
| "end_time" : null, | |
| "timestamp_field" : null, | |
| "ignore" : "timestamp" | |
| } | |
| } | |
| ], | |
| "transitions" : [ | |
| { | |
| "state_name" : "delete", | |
| "conditions" : { | |
| "min_index_age" : "30d" | |
| } | |
| } | |
| ] | |
| }, | |
| { | |
| "name" : "delete", | |
| "actions" : [ | |
| { | |
| "cold_delete" : { } | |
| } | |
| ], | |
| "transitions" : [ ] | |
| } | |
| ], | |
| "ism_template" : [ | |
| { | |
| "index_patterns" : [ | |
| "rgumiero-logs*" | |
| ], | |
| "priority" : 1, | |
| "last_updated_time" : 1654276441475 | |
| } | |
| ] | |
| } | |
| } | |
| PUT _index_template/rgumiero-logs_template | |
| { | |
| "index_patterns": ["rgumiero-logs*"], | |
| "template": { | |
| "settings": { | |
| "index": { | |
| "number_of_shards": "1", | |
| "number_of_replicas": "1" | |
| }, | |
| "plugins.index_state_management.rollover_alias": "rgumiero-logs" | |
| } | |
| } | |
| } | |
| GET _cat/templates | |
| GET _index_template/rgumiero-logs_template | |
| PUT rgumiero-logs-000001 | |
| { | |
| "aliases": { | |
| "rgumiero-logs": { | |
| "is_write_index": true | |
| } | |
| } | |
| } | |
| GET /rgumiero-logs/_settings | |
| POST /_bulk | |
| {"index": {"_index": "rgumiero-logs"}} | |
| {"directors": ["Joseph Gordon-Levitt"], "release_date": "2013-01-18T00:00:00Z", "rating": 7.4, "genres": ["Comedy", "Drama"], "image_url": "http://ia.media-imdb.com/images/M/MV5BMTQxNTc3NDM2MF5BMl5BanBnXkFtZTcwNzQ5NTQ3OQ@@._V1_SX400_.jpg", "plot": "A New Jersey guy dedicated to his family, friends, and church, develops unrealistic expectations from watching porn and works to find happiness and intimacy with his potential true love.", "title": "Don Jon", "rank": 1, "running_time_secs": 5400, "actors": ["Joseph Gordon-Levitt", "Scarlett Johansson", "Julianne Moore"], "year": 2013} | |
| {"index": {"_index": "rgumiero-logs"}} | |
| {"directors": ["Ron Howard"], "release_date": "2013-09-02T00:00:00Z", "rating": 8.3, "genres": ["Action", "Biography", "Drama", "Sport"], "image_url": "http://ia.media-imdb.com/images/M/MV5BMTQyMDE0MTY0OV5BMl5BanBnXkFtZTcwMjI2OTI0OQ@@._V1_SX400_.jpg", "plot": "A re-creation of the merciless 1970s rivalry between Formula One rivals James Hunt and Niki Lauda.", "title": "Rush", "rank": 2, "running_time_secs": 7380, "actors": ["Daniel Br\u00c3\u00bchl", "Chris Hemsworth", "Olivia Wilde"], "year": 2013} | |
| GET _plugins/_ism/explain/rgumiero-logs-000001?pretty | |
| GET _cat/indices |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment