elasticsearch/docs/reference/data-streams
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
..
lifecycle Add data stream lifecycle by default (#97823) 2023-08-11 06:28:37 -04:00
change-mappings-and-settings.asciidoc Add data stream lifecycle by default (#97823) 2023-08-11 06:28:37 -04:00
data-stream-apis.asciidoc Hiding data stream lifecycle documentation in released docs (#98334) 2023-08-10 08:18:05 -05:00
data-streams.asciidoc Start with data stream lifecycle documentation (#95326) 2023-06-28 16:18:05 +03:00
downsampling-ilm.asciidoc [DOCS] Note limits for queries on downsampled indices (#95749) 2023-05-03 09:58:23 -04:00
downsampling-manual.asciidoc Add data stream lifecycle by default (#97823) 2023-08-11 06:28:37 -04:00
downsampling.asciidoc [DOCS] Note limits for queries on downsampled indices (#95749) 2023-05-03 09:58:23 -04:00
modify-data-streams-api.asciidoc [DOCS] Data stream modification API (#80094) 2021-11-10 08:37:12 -06:00
promote-data-stream-api.asciidoc [DOCS] Fix double spaces (#71082) 2021-03-31 09:57:47 -04:00
set-up-a-data-stream.asciidoc Validate that snapshot repository exists for ILM policies at creation/update time (#78468) 2021-10-04 15:19:10 -04:00
set-up-tsds.asciidoc Remove tech preview disclaimer from TSDS ingest docs (#91519) 2022-11-22 09:23:40 -05:00
tsds-index-settings.asciidoc Update tsds-index-settings.asciidoc (#96366) 2023-05-26 19:23:53 +02:00
tsds.asciidoc Enable all remaining metric aggregations on counters (#97974) 2023-08-08 17:47:47 +02:00
use-a-data-stream.asciidoc Change test tear down to only remove resources created by the test (#98060) 2023-07-31 17:23:37 +03:00