Hi all,
I’m using a windows based Opendistro Kibana installation with a regular elasticsearch installation.
Been trying to figure out things on “Opendistro” as I’m not an experienced programmer, on some parts it was easy, other parts were not since I’m missing some basic programming skills (working on it, big thanks to several people in this community that really helped me).
The last mile I’m trying to figure is “Indexing Management” (I followed the documentation but honestly did not understand everything).
I have several indexes:
check*
ops*
dc*
mc*
(each one has a timestamp)
I want to create a template, that will automatically add newly created indices and delete indices older than 30 days.
I searched here and found this code:
"policy": { "policy_id": "delete_older_than_30d", "description": "Policy that deletes indicies older than 30 days", "last_updated_time": 1598550179368, "schema_version": 1, "error_notification": null, "default_state": "open", "states": [ { "name": "open", "actions": [], "transitions": [ { "state_name": "delete", "conditions": { "min_index_age": "30d" } } ] }, { "name": "delete", "actions": [ { "delete": {} } ], "transitions": [] } ] }
}
It would be much appreciated for a short explanation to a layman such as I on how and where I create a template? since I’m not seeing any “template” option under “Index Management”.
Do I need to create it under “Dev Tools”? If so, I will be grateful for any help on how to edit the code above and create a template that will automatically add newly created indices and delete older than 30 days.
Would also like to know how to get the correct “last_updated_time” for this code and how it effects the code \ indexes?
Would you recommend using actions such as roll overs, aliases or merging for indexes? for dealing with indexes In aspects of performance and saving disk space.
Thanks in advance and apologies for the newbie questions