I have an index for packetbeat. Needless to say, this pulls down lots of data so Im wanting to
a) roll it over often
b) delete it after 12 hours
It isn't doing either activity and Im struggling to understand why.
GET packetbeat-000003/_ilm/explain
{
"indices" : {
"packetbeat-000003" : {
"index" : "packetbeat-000003",
"managed" : true,
"policy" : "packetbeat-rollover"
}
}
}
GET _ilm/policy
"packetbeat-rollover" : {
"version" : 2,
"modified_date" : "2019-11-05T11:55:49.497Z",
"policy" : {
"phases" : {
"hot" : {
"min_age" : "0ms",
"actions" : {
"rollover" : {
"max_size" : "20gb",
"max_age" : "3h"
},
"set_priority" : {
"priority" : 100
}
}
},
"delete" : {
"min_age" : "12h",
"actions" : {
"delete" : { }
}
}
}
}
},
Im able to make it rollover via curl but that's not the desired process.
Any idea how to make this work?