Rollover index API

I have configured the rollover index API for some indices.

For example, the configuration of rollover conditions looks like this:

{
  "conditions": {
    "max_age": "7d",
    "max_docs": 1000,
    "max_size": "5gb"
  }
}

Each time, before inserting a new record, I perform

POST / logs_write / _rollover
{
  "conditions": {
    "max_age": "7d",
    "max_docs": 1000,
    "max_size": "5gb"
  }
}

Everything fulfills perfectly, and when the condition is met, they are created
new indices -000001, -000002, -000003, etc.

But I noticed that, the old parts on the production are not saved
and when a new index is created, for example, -000003 then the index is -000002
deleted.

What can cause this behavior?

No additional scripts to remove or
life cycle management is not configured.

I am using elasticsearch aws 6.7.0

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.