elasticsearch/docs/reference/data-streams/lifecycle
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
..
apis Add data stream lifecycle by default (#97823) 2023-08-11 06:28:37 -04:00
index.asciidoc Hiding data stream lifecycle documentation in released docs (#98334) 2023-08-10 08:18:05 -05:00
tutorial-manage-existing-data-stream.asciidoc Add data stream lifecycle by default (#97823) 2023-08-11 06:28:37 -04:00
tutorial-manage-new-data-stream.asciidoc Add data stream lifecycle by default (#97823) 2023-08-11 06:28:37 -04:00