Hi,
I have configured metricbeat and I am getting indices populated like metricbeat-7.9.1-2020.11.25
. I would like to implement ISM to my current metricbeat index and to all upcoming metricbeat indices. I am trying to achieve this;
-
metricbeat-7.9.1-2020.11.25
should be roled tometricbeat-7.9.1-2020.11.25-000001
on reaching 100mb, and then tometricbeat-7.9.1-2020.11.25-000002
on reaching the next 100mb, and so on. - Indices should be automatically deleted after 1 day. I just need
hot
anddelete
phases only
I created a policy like this using kibana;
{
"policy": {
"policy_id": "metricbeat",
"description": "Metricbeat delete old",
"last_updated_time": 1606321584143,
"schema_version": 1,
"error_notification": null,
"default_state": "hot",
"states": [
{
"name": "hot",
"actions": [
{
"replica_count": {
"number_of_replicas": 2
}
}
],
"transitions": [
{
"state_name": "delete",
"conditions": {
"min_size": "100mb"
}
}
]
},
{
"name": "delete",
"actions": [
{
"delete": {}
}
],
"transitions": []
}
]
}
}
Then, from Index Management > Indices, i selected the index metricbeat-7.9.1-2020.11.25-000002
, and clicked Apply Policy Button. From the popup, i selected teh policy I just created and clicked the Apply button. Is this the right procedure, because indices are getting generated daily?
Can somebody please help me with the things I am trying to achieve?
Thanks in advance.