Hi,
I noticed that despite my indexes are being rolled over at midnight, the "index phase time" and "index action time" are with 2h difference apart, like:
{
"indices" : {
"suricata-ids-2022.03.28-000021" : {
"index" : "suricata-ids-2022.03.28-000021",
"managed" : true,
"policy" : "filebeat",
"lifecycle_date_millis" : 1648425600000,
"age" : "21.81h",
"phase" : "hot",
"phase_time_millis" : 1648433109374,
"action" : "rollover",
"action_time_millis" : 1648433109733,
"step" : "check-rollover-ready",
"step_time_millis" : 1648433109733,
"phase_execution" : {
"policy" : "filebeat",
"phase_definition" : {
"min_age" : "0ms",
"actions" : {
"rollover" : {
"max_age" : "1d"
}
}
},
"version" : 50,
"modified_date_in_millis" : 1648501759739
}
}
}
}
So, index suricata-ids-2022.03.28-000021
only starts to have data from 2AM forward. The previous data from 0AM to 2AM are still being indexed by suricata-ids-2022.03.27-000021
This is my ILM policy:
PUT _ilm/policy/filebeat
{
"policy": {
"phases": {
"hot": {
"min_age": "0ms",
"actions": {
"rollover": {
"max_age": "1d"
}
}
},
"warm": {
"min_age": "5d",
"actions": {
"set_priority": {
"priority": 50
}
}
},
"delete": {
"min_age": "10d",
"actions": {
"delete": {
"delete_searchable_snapshot": true
}
}
}
}
}
}
I am using the "parse_origination_date": "true"
option on my index template. What i want is to rollover the index at midnight and immediately start writing the data into the index.
I am using ELK stack 7.13.4