elasticsearch/docs/reference/data-streams/lifecycle/apis
Mary Gouseti e71ea6e6d7
Add data stream lifecycle by default (#97823)
In this PR we enable all new data streams to be managed by the data
stream lifecycle by default. This is implemented by adding an empty
`lifecycle: {}` upon new data stream creation. 

Opting out is represented by a the `enabled` flag:

```
{
  "lifecycle": {
    "enabled": false
  }
}
```

This change has the following implications on when is an index managed
and by which feature:

| Parent data stream lifecycle| ILM| `prefer_ilm`|Managed by|
|----------------------------|----|----------------|-| | default | yes|
true| ILM| | default | yes| false| data stream lifecycle| |default |
no|true/false|data stream lifecycle| |opt-out or
missing|yes|true/false|ILM| |opt-out or missing|no|true/false|unmanaged|

Data streams that have been created before the data stream lifecycle is
enabled will not have the default lifecycle.

Next steps: - We need to document this when the feature will be GA
(https://github.com/elastic/elasticsearch/issues/97973).
2023-08-11 06:28:37 -04:00
..
delete-lifecycle.asciidoc Start with data stream lifecycle documentation (#95326) 2023-06-28 16:18:05 +03:00
explain-lifecycle.asciidoc Add data stream lifecycle by default (#97823) 2023-08-11 06:28:37 -04:00
get-lifecycle.asciidoc Add data stream lifecycle by default (#97823) 2023-08-11 06:28:37 -04:00
put-lifecycle.asciidoc Data stream lifecycle class names (#97381) 2023-07-05 12:28:32 +03:00