elasticsearch/docs/reference/data-streams
Andrei Dan f202ad02fe
GET _data_stream displays both ILM and DSL information (#99947)
This add support to the `GET _data_stream` API for displaying the value
of the `index.lifecycle.prefer_ilm` setting both at the backing index
level and at the top level (top level meaning, similarly to the existing
`ilm_policy` field, the value in the index template that's backing the
data stream), an `ilm_policy` field for each backing index displaying
the actual ILM policy configured for the index itself, a `managed_by`
field for each backing index indicating who manages this index (the
possible values are: `Index Lifecycle Management`, `Data stream
lifecycle`, and `Unmanaged`).

This also adds a top level field to indicate which system would manage
the next generation index for this data stream based on the current
configuration. This field is called `next_generation_managed_by` and the
same values as the indices level `managed_by` field has are available.

An example output for a data stream that has 2 backing indices managed
by ILM and the write index by DSL:

```
{
	"data_streams": [{
		"name": "datastream-psnyudmbitp",
		"timestamp_field": {
			"name": "@timestamp"
		},
		"indices": [{
			"index_name": ".ds-datastream-psnyudmbitp-2023.09.27-000001",
			"index_uuid": "kyw0WEXvS8-ahchYS10NRQ",
                        "prefer_ilm": true,
			"ilm_policy": "policy-uVBEI",
			"managed_by": "Index Lifecycle Management"
		}, {
			"index_name": ".ds-datastream-psnyudmbitp-2023.09.27-000002",
			"index_uuid": "pDLdc4DERwO54GRzDr4krw",
			"prefer_ilm": true,
			"ilm_policy": "policy-uVBEI",
			"managed_by": "Index Lifecycle Management"
		}, {
			"index_name": ".ds-datastream-psnyudmbitp-2023.09.27-000003",
			"index_uuid": "gYZirLKcS3mlc1c3oHRpYw",
			"prefer_ilm": false,
			"ilm_policy": "policy-uVBEI",
                        "managed_by": "Data stream lifecycle"
		}],
		"generation": 3,
		"status": "YELLOW",
		"template": "indextemplate-obcvkbjqand",
		"lifecycle": {
			"enabled": true,
			"data_retention": "90d"
		},
		"ilm_policy": "policy-uVBEI",
                "next_generation_managed_by": "Data stream lifecycle",
		"prefer_ilm": false,
		"hidden": false,
		"system": false,
		"allow_custom_routing": false,
		"replicated": false
	}]
}
```
2023-09-28 13:48:17 -04:00
..
lifecycle Allow explain data stream lifecycle to accept a data stream. (#98811) 2023-08-24 06:29:09 -04:00
change-mappings-and-settings.asciidoc GET _data_stream displays both ILM and DSL information (#99947) 2023-09-28 13:48:17 -04:00
data-stream-apis.asciidoc GA the data stream lifecycle (#98644) 2023-08-21 17:28:54 +01: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 GET _data_stream displays both ILM and DSL information (#99947) 2023-09-28 13:48:17 -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 [DOCS] Move x-pack docs to docs/reference dir (#99209) 2023-09-12 14:53:41 -04:00
set-up-tsds.asciidoc Add index.look_back_time setting for tsdb data streams (#98518) 2023-09-08 11:11:43 +02:00
tsds-index-settings.asciidoc Add index.look_back_time setting for tsdb data streams (#98518) 2023-09-08 11:11:43 +02:00
tsds-reindex.asciidoc Document how to reindex a TSDS (#99476) 2023-09-13 18:28:03 +03:00
tsds.asciidoc [main] [DOCS] Time series indices support non-metric/dimension fields (#99709) (#99811) 2023-09-22 09:11:29 -04: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