Hi,
I am using metricbeat to publish metrics to elasticsearch and below is my configuration;
setup.template.settings.index.opendistro.index_state_management.policy_id: "metricbeat"
setup.template.name: "metricbeat-7.9.1"
setup.template.pattern: "metricbeat-7.9.1"
output.elasticsearch.index: "metricbeat-7.9.1-000001"
setup.ilm.enabled: false
I created an ISM policy named metricbeat
like below;
{
"policy": {
"policy_id": "metricbeat",
"states": [
{
"name": "hot",
"actions": [
{
"rollover": {
"min_size": "5mb"
}
}
],
"transitions": [
{
"state_name": "delete",
"conditions": {
"min_index_age": "50m"
}
}
]
},
{
"name": "delete",
"actions": [
{
"delete": {}
}
],
"transitions": []
}
]
}
}
I have the template metricbeat-7.9.1
like below;
{
"metricbeat-7.9.1" : {
"order" : 1,
"index_patterns" : [
"metricbeat-7.9.1-*"
],
"settings" : {
"index" : {
"opendistro" : {
"index_state_management" : {
"policy_id" : "metricbeat",
"rollover_alias" : "metricbeat-7.9.1"
}
}
}
},
"aliases" : {
"metricbeat" : { }
}
}
}
and I attached the alias as well, like below;
POST /_aliases
{
"actions" : [
{
"add" : {
"index" : "metricbeat-7.9.1-*",
"alias" : "metricbeat-7.9.1",
"is_write_index" : true
}
}
]
}
What happened was, the rollover index metricbeat-7.9.1-000002
got created successfully, but the size is 0. Why is this happening?
Thanks.