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.md
+5-5Lines changed: 5 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -25,11 +25,11 @@ You can also use a [data stream lifecycle](../lifecycle/data-stream.md) to autom
25
25
Starting with {{stack}} version 9.2, **Streams** provides a centralized interface for managing your data in {{kib}}. It consolidates common data management tasks and eliminates the need for manual configuration of multiple applications and components. A stream directly corresponds to an {{es}} data stream, for example `logs-myapp-default`. Any changes that you make in Streams are automatically propagated to the associated data stream.
26
26
27
27
You can use Streams to perform the following data management tasks:
28
-
* defining parsing and field extraction logic to structure incoming data
29
-
*managing and updating field mappings
30
-
*configuring data retention policies
31
-
*identifying failed and degraded documents
32
-
*manually adjusting index configuration settings
28
+
* defining parsing and field extraction logic to structure incoming data {applies_to}`"stack": "ga 9.2, preview 9.1"`
29
+
*configuring data retention policies {applies_to}`"stack": "ga 9.2, preview 9.1"`
30
+
*manually adjusting index configuration settings {applies_to}`"stack": "ga 9.2, preview 9.1"`
31
+
*managing and updating field mappings {applies_to}`stack: ga 9.2`
32
+
*identifying failed and degraded documents {applies_to}`stack: ga 9.2`
33
33
34
34
For more information, refer to [Streams](/solutions/observability/streams/streams.md).
Copy file name to clipboardExpand all lines: manage-data/lifecycle/data-stream/tutorial-data-stream-retention.md
+15-4Lines changed: 15 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -10,7 +10,7 @@ products:
10
10
11
11
# Tutorial: Configure data stream retention [tutorial-manage-data-stream-retention]
12
12
13
-
In this tutorial, we are going to go over the data stream lifecycle retention; we will define it, go over how it can be configured and how it can gets applied. Keep in mind, the following options apply only to data streams that are managed by the data stream lifecycle.
13
+
In this tutorial, we are going to go over the data stream lifecycle retention; we will define it, go over how it can be configured and how it gets applied. Keep in mind, the following options apply only to data streams that are managed by the data stream lifecycle.
14
14
15
15
1.[What is data stream retention?](#what-is-retention)
16
16
2.[How to configure retention?](#retention-configuration)
@@ -42,6 +42,11 @@ The result should look like this:
42
42
2. Ensure that the lifecycle is enabled, meaning this should be `true`.
You can also review how a data stream is managed by locating it on the **Streams** page in {{kib}}. A stream directly corresponds to a data stream. Select a stream to view its details and go to the **Retention** tab.
49
+
:::
45
50
46
51
## What is data stream retention? [what-is-retention]
47
52
@@ -69,7 +74,7 @@ Global default and max retention do not apply to data streams internal to elasti
69
74
70
75
* By setting the `data_retention` on the data stream level. This retention can be configured in two ways:
71
76
72
-
— For new data streams, it can be defined in the index template that would be applied during the data stream’s creation. You can use the [create index template API](https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-indices-put-index-template), for example:
77
+
* For new data streams, it can be defined in the index template that would be applied during the data stream’s creation. You can use the [create index template API](https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-indices-put-index-template), for example:
73
78
74
79
```console
75
80
PUT _index_template/template
@@ -88,7 +93,7 @@ Global default and max retention do not apply to data streams internal to elasti
88
93
}
89
94
```
90
95
91
-
— For an existing data stream, it can be set via the [PUT lifecycle API](https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-indices-put-data-lifecycle).
96
+
* For an existing data stream, it can be set via the [PUT lifecycle API](https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-indices-put-data-lifecycle).
92
97
93
98
```console
94
99
PUT _data_stream/my-data-stream/_lifecycle
@@ -99,7 +104,13 @@ Global default and max retention do not apply to data streams internal to elasti
99
104
100
105
1. The retention period of this data stream is set to 30 days.
101
106
102
-
* By setting the global retention via the `data_streams.lifecycle.retention.default` and/or `data_streams.lifecycle.retention.max` that are set on a cluster level. You can be set via the [update cluster settings API](https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-cluster-put-settings). For example:
To adjust the retention period of a data stream in {{kib}}, locate a data stream on the **Streams** page. A stream directly corresponds to a data stream. Next, select a stream to view its details and review the **Retention** tab to find out how it's managed before making your adjustments.
111
+
:::
112
+
113
+
* By setting the global retention via the `data_streams.lifecycle.retention.default` and/or `data_streams.lifecycle.retention.max` that are set on a cluster level. You can set this via the [update cluster settings API](https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-cluster-put-settings). For example:
0 commit comments