You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: manage-data/data-store/data-streams/set-up-tsds.md
+8-9Lines changed: 8 additions & 9 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -63,7 +63,6 @@ PUT _ilm/policy/my-weather-sensor-lifecycle-policy
63
63
}
64
64
}
65
65
// Additional phases (warm, cold, delete) as needed
66
-
}
67
66
}
68
67
}
69
68
}
@@ -85,10 +84,10 @@ The structure of a time series data stream is defined by an index template. Crea
85
84
- To define dimensions dynamically, you can use a pass-through object. For details, refer to [Defining sub-fields as time series dimensions](elasticsearch://reference/elasticsearch/mapping-reference/passthrough.md#passthrough-dimensions).
86
85
-**Metrics:** To define a metric, use the `time_series_metric` mapping parameter. For details, refer to [Metrics](/manage-data/data-store/data-streams/time-series-data-stream-tsds.md#time-series-metric).
87
86
-**Timestamp** (optional): Define a `date` or `date_nanos` mapping for the `@timestamp` field. If you don't specify a mapping, {{es}} maps `@timestamp` as a `date` field with default options.
88
-
-{applies_to}`serverless: unavailable` {applies_to}`stack: ga`**Lifecycle management**: For {{stack}}, include lifecycle settings to enable automatic rollover and prevent indices from growing too large.
89
-
-Set `"lifecycle": { "enabled": true }`.
90
-
- If you created an ILM policy in [step 1](#tsds-ilm-policy), reference it with `index.lifecycle.name`.
91
-
-**Other settings**(optional): Additional index settings, such as [`index.number_of_replicas`](elasticsearch://reference/elasticsearch/index-settings/index-modules.md#dynamic-index-number-of-replicas), for the data stream's backing indices.
87
+
- {applies_to}`serverless: unavailable` {applies_to}`stack: ga`**Lifecycle management**: If you're using {{stack}}, define a lifecycle to enable automatic rollover and prevent indices from growing too large.
88
+
-Add a `lifecycle` object and specify `"enabled": true`.
89
+
- If you created an ILM policy in [step 1](#tsds-ilm-policy), reference it in the settings with `index.lifecycle.name`.
90
+
-**Settings** (optional): Define any relevant index settings, such as [`index.number_of_replicas`](elasticsearch://reference/elasticsearch/index-settings/index-modules.md#dynamic-index-number-of-replicas), for the data stream's backing indices.
92
91
-**Priority:** Set the priority higher than `200` to avoid [collisions](/manage-data/data-store/templates.md#avoid-index-pattern-collisions) with built-in templates.
93
92
94
93
**Example index template PUT request:**
@@ -101,10 +100,10 @@ PUT _index_template/my-weather-sensor-index-template
0 commit comments