2020-07-09 13:12:38 -04:00
|
|
|
[role="xpack"]
|
2020-06-10 14:03:46 -04:00
|
|
|
[[set-up-a-data-stream]]
|
|
|
|
== Set up a data stream
|
|
|
|
|
|
|
|
To set up a data stream, follow these steps:
|
|
|
|
|
|
|
|
. Check the <<data-stream-prereqs, prerequisites>>.
|
|
|
|
. <<configure-a-data-stream-ilm-policy>>.
|
|
|
|
. <<create-a-data-stream-template>>.
|
|
|
|
. <<create-a-data-stream>>.
|
2020-06-15 09:48:58 -04:00
|
|
|
. <<get-info-about-a-data-stream>> to verify it exists.
|
2020-07-08 12:53:56 -04:00
|
|
|
. <<secure-a-data-stream>>.
|
2020-06-10 14:03:46 -04:00
|
|
|
|
|
|
|
After you set up a data stream, you can <<use-a-data-stream, use the data
|
|
|
|
stream>> for indexing, searches, and other supported operations.
|
|
|
|
|
2020-06-15 08:52:43 -04:00
|
|
|
If you no longer need it, you can <<delete-a-data-stream,delete a data stream>>
|
|
|
|
and its backing indices.
|
|
|
|
|
2020-06-10 14:03:46 -04:00
|
|
|
[discrete]
|
|
|
|
[[data-stream-prereqs]]
|
|
|
|
=== Prerequisites
|
|
|
|
|
2020-08-24 11:18:07 -04:00
|
|
|
* {es} data streams are intended for time series data only. Each document
|
|
|
|
indexed to a data stream must contain the `@timestamp` field. This field must be
|
|
|
|
mapped as a <<date,`date`>> or <<date_nanos,`date_nanos`>> field data type.
|
2020-06-10 14:03:46 -04:00
|
|
|
|
2020-06-30 08:35:13 -04:00
|
|
|
* Data streams are best suited for time-based,
|
|
|
|
<<data-streams-append-only,append-only>> use cases. If you frequently need to
|
|
|
|
update or delete existing documents, we recommend using an index alias and an
|
|
|
|
index template instead.
|
2020-06-10 14:03:46 -04:00
|
|
|
|
|
|
|
|
|
|
|
[discrete]
|
|
|
|
[[configure-a-data-stream-ilm-policy]]
|
|
|
|
=== Optional: Configure an {ilm-init} lifecycle policy for a data stream
|
|
|
|
|
|
|
|
You can use <<index-lifecycle-management,{ilm} ({ilm-init})>> to automatically
|
|
|
|
manage a data stream's backing indices. For example, you could use {ilm-init}
|
|
|
|
to:
|
|
|
|
|
|
|
|
* Spin up a new write index for the data stream when the current one reaches a
|
|
|
|
certain size or age.
|
|
|
|
* Move older backing indices to slower, less expensive hardware.
|
|
|
|
* Delete stale backing indices to enforce data retention standards.
|
|
|
|
|
|
|
|
To use {ilm-init} with a data stream, you must
|
|
|
|
<<set-up-lifecycle-policy,configure a lifecycle policy>>. This lifecycle policy
|
|
|
|
should contain the automated actions to take on backing indices and the
|
|
|
|
triggers for such actions.
|
|
|
|
|
2020-07-21 17:04:13 -04:00
|
|
|
TIP: While optional, we recommend using {ilm-init} to manage the backing indices
|
|
|
|
associated with a data stream.
|
2020-06-10 14:03:46 -04:00
|
|
|
|
2020-07-27 10:39:32 -04:00
|
|
|
You can create the policy through the Kibana UI. In Kibana, open the menu and go
|
|
|
|
to *Stack Management > Index Lifecycle Policies*. Click *Index Lifecycle
|
|
|
|
Policies*.
|
2020-06-10 14:03:46 -04:00
|
|
|
|
2020-07-27 10:39:32 -04:00
|
|
|
[role="screenshot"]
|
|
|
|
image::images/ilm/create-policy.png[Index Lifecycle Policies page]
|
|
|
|
|
|
|
|
You can also create a policy using the <<ilm-put-lifecycle,create lifecycle
|
|
|
|
policy API>>.
|
|
|
|
|
2020-08-06 09:38:35 -04:00
|
|
|
The following request configures the `my-data-stream-policy` lifecycle policy.
|
|
|
|
The policy uses the <<ilm-rollover,`rollover` action>> to create a
|
2020-06-11 11:32:09 -04:00
|
|
|
new <<data-stream-write-index,write index>> for the data stream when the current
|
|
|
|
one reaches 25GB in size. The policy also deletes backing indices 30 days after
|
|
|
|
their rollover.
|
2020-06-10 14:03:46 -04:00
|
|
|
|
|
|
|
[source,console]
|
|
|
|
----
|
2020-08-06 09:38:35 -04:00
|
|
|
PUT /_ilm/policy/my-data-stream-policy
|
2020-06-10 14:03:46 -04:00
|
|
|
{
|
|
|
|
"policy": {
|
|
|
|
"phases": {
|
|
|
|
"hot": {
|
|
|
|
"actions": {
|
|
|
|
"rollover": {
|
|
|
|
"max_size": "25GB"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"delete": {
|
|
|
|
"min_age": "30d",
|
|
|
|
"actions": {
|
|
|
|
"delete": {}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
----
|
|
|
|
|
|
|
|
|
|
|
|
[discrete]
|
|
|
|
[[create-a-data-stream-template]]
|
2020-06-26 11:52:58 -04:00
|
|
|
=== Create an index template for a data stream
|
2020-06-10 14:03:46 -04:00
|
|
|
|
2020-07-21 17:04:13 -04:00
|
|
|
A data stream uses an index template to configure its backing indices. A
|
|
|
|
template for a data stream must specify:
|
2020-06-10 14:03:46 -04:00
|
|
|
|
2020-08-12 15:14:03 -04:00
|
|
|
* One or more index patterns that match the name of the stream.
|
2020-06-10 14:03:46 -04:00
|
|
|
|
2020-07-21 17:04:13 -04:00
|
|
|
* The mappings and settings for the stream's backing indices.
|
2020-06-10 14:03:46 -04:00
|
|
|
|
2020-07-27 10:39:32 -04:00
|
|
|
* That the template is used exclusively for data streams.
|
|
|
|
|
2020-08-17 12:48:34 -04:00
|
|
|
* A priority for the template.
|
|
|
|
|
|
|
|
[IMPORTANT]
|
|
|
|
====
|
2020-09-14 19:14:34 -04:00
|
|
|
{es} has built-in index templates for the `metrics-*-*`, `logs-*-*`, and `synthetics-*-*` index
|
2020-08-26 08:10:59 -04:00
|
|
|
patterns, each with a priority of `100`.
|
|
|
|
{ingest-guide}/ingest-management-overview.html[{agent}] uses these templates to
|
|
|
|
create data streams. If you use {agent}, assign your index templates a priority
|
|
|
|
lower than `100` to avoid overriding the built-in templates.
|
2020-08-17 12:48:34 -04:00
|
|
|
|
|
|
|
Otherwise, to avoid accidentally applying the built-in templates, use a
|
2020-08-26 08:10:59 -04:00
|
|
|
non-overlapping index pattern or assign templates with an overlapping pattern a
|
|
|
|
`priority` higher than `100`.
|
|
|
|
|
|
|
|
For example, if you don't use {agent} and want to create a template for the
|
|
|
|
`logs-*` index pattern, assign your template a priority of `200`. This ensures
|
|
|
|
your template is applied instead of the built-in template for `logs-*-*`.
|
2020-08-17 12:48:34 -04:00
|
|
|
====
|
|
|
|
|
2020-07-21 17:04:13 -04:00
|
|
|
Every document indexed to a data stream must have a `@timestamp` field. This
|
|
|
|
field can be mapped as a <<date,`date`>> or <<date_nanos,`date_nanos`>> field
|
|
|
|
data type by the stream's index template. This mapping can include other
|
|
|
|
<<mapping-params,mapping parameters>>, such as <<mapping-date-format,`format`>>.
|
2020-07-27 10:39:32 -04:00
|
|
|
If the template does not specify a mapping, the `@timestamp` field is mapped as
|
|
|
|
a `date` field with default options.
|
2020-07-14 06:29:33 -04:00
|
|
|
|
2020-07-21 17:04:13 -04:00
|
|
|
We recommend using {ilm-init} to manage a data stream's backing indices. Specify
|
|
|
|
the name of the lifecycle policy with the `index.lifecycle.name` setting.
|
2020-06-10 14:03:46 -04:00
|
|
|
|
2020-06-16 16:20:32 -04:00
|
|
|
TIP: We recommend you carefully consider which mappings and settings to include
|
|
|
|
in this template before creating a data stream. Later changes to the mappings or
|
|
|
|
settings of a stream's backing indices may require reindexing. See
|
|
|
|
<<data-streams-change-mappings-and-settings>>.
|
|
|
|
|
2020-07-27 10:39:32 -04:00
|
|
|
You can create an index template through the Kibana UI:
|
|
|
|
|
|
|
|
. From Kibana, open the menu and go to *Stack Management > Index Management*.
|
|
|
|
. In the *Index Templates* tab, click *Create template*.
|
|
|
|
. In the Create template wizard, use the *Data stream* toggle to indicate the
|
|
|
|
template is used exclusively for data streams.
|
|
|
|
|
|
|
|
[role="screenshot"]
|
|
|
|
image::images/data-streams/create-index-template.png[Create template page]
|
2020-06-10 14:03:46 -04:00
|
|
|
|
2020-07-27 10:39:32 -04:00
|
|
|
You can also create a template using the <<indices-put-template,put index
|
|
|
|
template API>>. The template must include a `data_stream` object with an empty
|
|
|
|
body (`{ }`). This object indicates the template is used exclusively for data
|
|
|
|
streams.
|
|
|
|
|
2020-08-06 09:38:35 -04:00
|
|
|
The following request configures the `my-data-stream-template` index template.
|
|
|
|
Because no field mapping is specified, the `@timestamp` field uses the `date`
|
|
|
|
field data type by default.
|
2020-07-14 17:28:31 -04:00
|
|
|
|
2020-06-10 14:03:46 -04:00
|
|
|
[source,console]
|
|
|
|
----
|
2020-08-06 09:38:35 -04:00
|
|
|
PUT /_index_template/my-data-stream-template
|
2020-06-10 14:03:46 -04:00
|
|
|
{
|
2020-08-06 09:38:35 -04:00
|
|
|
"index_patterns": [ "my-data-stream*" ],
|
2020-07-14 17:28:43 -04:00
|
|
|
"data_stream": { },
|
2020-08-17 12:48:34 -04:00
|
|
|
"priority": 200,
|
2020-06-10 14:03:46 -04:00
|
|
|
"template": {
|
|
|
|
"settings": {
|
2020-08-06 09:38:35 -04:00
|
|
|
"index.lifecycle.name": "my-data-stream-policy"
|
2020-06-10 14:03:46 -04:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
----
|
|
|
|
// TEST[continued]
|
2020-07-14 17:28:31 -04:00
|
|
|
|
2020-07-21 17:04:13 -04:00
|
|
|
Alternatively, the following template maps `@timestamp` as a `date_nanos` field.
|
2020-07-14 17:28:31 -04:00
|
|
|
|
|
|
|
[source,console]
|
|
|
|
----
|
2020-08-06 09:38:35 -04:00
|
|
|
PUT /_index_template/my-data-stream-template
|
2020-07-14 17:28:31 -04:00
|
|
|
{
|
2020-08-06 09:38:35 -04:00
|
|
|
"index_patterns": [ "my-data-stream*" ],
|
2020-07-14 17:28:31 -04:00
|
|
|
"data_stream": { },
|
2020-08-17 12:48:34 -04:00
|
|
|
"priority": 200,
|
2020-07-14 17:28:31 -04:00
|
|
|
"template": {
|
|
|
|
"mappings": {
|
|
|
|
"properties": {
|
|
|
|
"@timestamp": { "type": "date_nanos" } <1>
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"settings": {
|
2020-08-06 09:38:35 -04:00
|
|
|
"index.lifecycle.name": "my-data-stream-policy"
|
2020-07-14 17:28:31 -04:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
----
|
|
|
|
// TEST[continued]
|
|
|
|
|
|
|
|
<1> Maps `@timestamp` as a `date_nanos` field. You can include other supported
|
|
|
|
mapping parameters in this field mapping.
|
2020-06-10 14:03:46 -04:00
|
|
|
|
2020-06-26 11:52:58 -04:00
|
|
|
NOTE: You cannot delete an index template that's in use by a data stream.
|
2020-06-23 09:01:17 -04:00
|
|
|
This would prevent the data stream from creating new backing indices.
|
|
|
|
|
2020-06-10 14:03:46 -04:00
|
|
|
[discrete]
|
|
|
|
[[create-a-data-stream]]
|
|
|
|
=== Create a data stream
|
|
|
|
|
2020-07-21 17:04:13 -04:00
|
|
|
You can create a data stream using one of two methods:
|
|
|
|
|
|
|
|
* <<index-documents-to-create-a-data-stream>>
|
|
|
|
* <<manually-create-a-data-stream>>
|
|
|
|
|
|
|
|
[discrete]
|
|
|
|
[[index-documents-to-create-a-data-stream]]
|
|
|
|
==== Index documents to create a data stream
|
2020-06-10 14:03:46 -04:00
|
|
|
|
2020-07-27 10:39:32 -04:00
|
|
|
You can automatically create a data stream using an indexing request. Submit
|
2020-07-21 17:04:13 -04:00
|
|
|
an <<add-documents-to-a-data-stream,indexing request>> to a target
|
2020-08-12 15:14:03 -04:00
|
|
|
matching the index pattern defined in the template's `index_patterns`
|
2020-06-10 14:03:46 -04:00
|
|
|
property.
|
2020-07-21 17:04:13 -04:00
|
|
|
|
2020-06-10 14:03:46 -04:00
|
|
|
If the indexing request's target doesn't exist, {es} creates the data stream and
|
|
|
|
uses the target name as the name for the stream.
|
|
|
|
|
|
|
|
NOTE: Data streams support only specific types of indexing requests. See
|
|
|
|
<<add-documents-to-a-data-stream>>.
|
|
|
|
|
2020-08-06 09:38:35 -04:00
|
|
|
The following <<docs-index_,index API>> request targets `my-data-stream`, which
|
2020-08-12 15:14:03 -04:00
|
|
|
matches the index pattern for `my-data-stream-template`. Because
|
2020-08-06 09:38:35 -04:00
|
|
|
no existing index or data stream uses this name, this request creates the
|
|
|
|
`my-data-stream` data stream and indexes the document to it.
|
2020-06-10 14:03:46 -04:00
|
|
|
|
|
|
|
[source,console]
|
|
|
|
----
|
2020-08-06 09:38:35 -04:00
|
|
|
POST /my-data-stream/_doc/
|
2020-06-10 14:03:46 -04:00
|
|
|
{
|
|
|
|
"@timestamp": "2020-12-06T11:04:05.000Z",
|
|
|
|
"user": {
|
|
|
|
"id": "vlb44hny"
|
|
|
|
},
|
|
|
|
"message": "Login attempt failed"
|
|
|
|
}
|
|
|
|
----
|
|
|
|
// TEST[continued]
|
|
|
|
|
|
|
|
The API returns the following response. Note the `_index` property contains
|
2020-08-06 09:38:35 -04:00
|
|
|
`.ds-my-data-stream-000001`, indicating the document was indexed to the write
|
|
|
|
index of the new data stream.
|
2020-06-10 14:03:46 -04:00
|
|
|
|
|
|
|
[source,console-result]
|
|
|
|
----
|
|
|
|
{
|
2020-08-06 09:38:35 -04:00
|
|
|
"_index": ".ds-my-data-stream-000001",
|
2020-06-10 14:03:46 -04:00
|
|
|
"_id": "qecQmXIBT4jB8tq1nG0j",
|
|
|
|
"_type": "_doc",
|
|
|
|
"_version": 1,
|
|
|
|
"result": "created",
|
|
|
|
"_shards": {
|
|
|
|
"total": 2,
|
|
|
|
"successful": 1,
|
|
|
|
"failed": 0
|
|
|
|
},
|
|
|
|
"_seq_no": 0,
|
|
|
|
"_primary_term": 1
|
|
|
|
}
|
|
|
|
----
|
|
|
|
// TESTRESPONSE[s/"_id": "qecQmXIBT4jB8tq1nG0j"/"_id": $body._id/]
|
|
|
|
|
2020-07-21 17:04:13 -04:00
|
|
|
[discrete]
|
|
|
|
[[manually-create-a-data-stream]]
|
|
|
|
==== Manually create a data stream
|
|
|
|
|
|
|
|
You can use the <<indices-create-data-stream,create data stream API>> to
|
2020-08-12 15:14:03 -04:00
|
|
|
manually create a data stream. The name of the data stream must match the index
|
|
|
|
pattern defined in the template's `index_patterns` property.
|
2020-07-21 17:04:13 -04:00
|
|
|
|
2020-08-06 09:38:35 -04:00
|
|
|
The following create data stream request targets `my-data-stream-alt`, which
|
2020-08-12 15:14:03 -04:00
|
|
|
matches the index pattern for `my-data-stream-template`. Because
|
2020-08-06 09:38:35 -04:00
|
|
|
no existing index or data stream uses this name, this request creates the
|
|
|
|
`my-data-stream-alt` data stream.
|
2020-06-10 14:03:46 -04:00
|
|
|
|
|
|
|
[source,console]
|
|
|
|
----
|
2020-08-06 09:38:35 -04:00
|
|
|
PUT /_data_stream/my-data-stream-alt
|
2020-06-10 14:03:46 -04:00
|
|
|
----
|
|
|
|
// TEST[continued]
|
|
|
|
|
2020-06-15 08:52:43 -04:00
|
|
|
[discrete]
|
|
|
|
[[get-info-about-a-data-stream]]
|
|
|
|
=== Get information about a data stream
|
|
|
|
|
2020-07-27 10:39:32 -04:00
|
|
|
To view information about a data stream in Kibana, open the menu and go to
|
|
|
|
*Stack Management > Index Management*. In the *Data Streams* tab, click a data
|
|
|
|
stream's name to view information about the stream.
|
|
|
|
|
|
|
|
[role="screenshot"]
|
|
|
|
image::images/data-streams/data-streams-list.png[Data Streams tab]
|
|
|
|
|
|
|
|
You can also use the <<indices-get-data-stream,get data stream API>> to retrieve
|
|
|
|
the following information about one or more data streams:
|
2020-06-15 08:52:43 -04:00
|
|
|
|
|
|
|
* The current backing indices, which is returned as an array. The last item in
|
|
|
|
the array contains information about the stream's current write index.
|
|
|
|
* The current generation
|
2020-07-08 14:04:14 -04:00
|
|
|
* The data stream's health status
|
|
|
|
* The index template used to create the stream's backing indices
|
|
|
|
* The current {ilm-init} lifecycle policy in the stream's matching index
|
|
|
|
template
|
2020-06-15 08:52:43 -04:00
|
|
|
|
2020-08-06 09:38:35 -04:00
|
|
|
The following get data stream API request retrieves information about
|
|
|
|
`my-data-stream`.
|
2020-07-08 14:04:14 -04:00
|
|
|
|
|
|
|
////
|
|
|
|
[source,console]
|
|
|
|
----
|
2020-08-06 09:38:35 -04:00
|
|
|
POST /my-data-stream/_rollover/
|
2020-07-08 14:04:14 -04:00
|
|
|
----
|
|
|
|
// TEST[continued]
|
|
|
|
////
|
2020-06-15 08:52:43 -04:00
|
|
|
|
|
|
|
[source,console]
|
|
|
|
----
|
2020-08-06 09:38:35 -04:00
|
|
|
GET /_data_stream/my-data-stream
|
2020-06-15 08:52:43 -04:00
|
|
|
----
|
2020-07-08 14:04:14 -04:00
|
|
|
// TEST[continued]
|
2020-06-15 08:52:43 -04:00
|
|
|
|
2020-07-08 14:04:14 -04:00
|
|
|
The API returns the following response. Note the `indices` property contains an
|
|
|
|
array of the stream's current backing indices. The last item in this array
|
2020-08-06 09:38:35 -04:00
|
|
|
contains information about the stream's write index, `.ds-my-data-stream-000002`.
|
2020-06-15 08:52:43 -04:00
|
|
|
|
|
|
|
[source,console-result]
|
|
|
|
----
|
2020-07-08 14:04:14 -04:00
|
|
|
{
|
|
|
|
"data_streams": [
|
|
|
|
{
|
2020-08-06 09:38:35 -04:00
|
|
|
"name": "my-data-stream",
|
2020-07-08 14:04:14 -04:00
|
|
|
"timestamp_field": {
|
|
|
|
"name": "@timestamp"
|
2020-06-15 08:52:43 -04:00
|
|
|
},
|
2020-07-08 14:04:14 -04:00
|
|
|
"indices": [
|
|
|
|
{
|
2020-08-06 09:38:35 -04:00
|
|
|
"index_name": ".ds-my-data-stream-000001",
|
2020-07-08 14:04:14 -04:00
|
|
|
"index_uuid": "krR78LfvTOe6gr5dj2_1xQ"
|
|
|
|
},
|
|
|
|
{
|
2020-08-06 09:38:35 -04:00
|
|
|
"index_name": ".ds-my-data-stream-000002", <1>
|
2020-07-08 14:04:14 -04:00
|
|
|
"index_uuid": "C6LWyNJHQWmA08aQGvqRkA"
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"generation": 2,
|
|
|
|
"status": "GREEN",
|
2020-08-06 09:38:35 -04:00
|
|
|
"template": "my-data-stream-template",
|
|
|
|
"ilm_policy": "my-data-stream-policy"
|
2020-07-08 14:04:14 -04:00
|
|
|
}
|
|
|
|
]
|
|
|
|
}
|
2020-06-15 08:52:43 -04:00
|
|
|
----
|
2020-07-08 14:04:14 -04:00
|
|
|
// TESTRESPONSE[s/"index_uuid": "krR78LfvTOe6gr5dj2_1xQ"/"index_uuid": $body.data_streams.0.indices.0.index_uuid/]
|
|
|
|
// TESTRESPONSE[s/"index_uuid": "C6LWyNJHQWmA08aQGvqRkA"/"index_uuid": $body.data_streams.0.indices.1.index_uuid/]
|
|
|
|
// TESTRESPONSE[s/"status": "GREEN"/"status": "YELLOW"/]
|
|
|
|
|
2020-08-06 09:38:35 -04:00
|
|
|
<1> Last item in the `indices` array for `my-data-stream`. This
|
|
|
|
item contains information about the stream's current write index,
|
|
|
|
`.ds-my-data-stream-000002`.
|
2020-06-15 08:52:43 -04:00
|
|
|
|
2020-07-08 12:53:56 -04:00
|
|
|
[discrete]
|
|
|
|
[[secure-a-data-stream]]
|
|
|
|
=== Secure a data stream
|
|
|
|
|
|
|
|
You can use {es} {security-features} to control access to a data stream and its
|
|
|
|
data. See <<data-stream-privileges>>.
|
|
|
|
|
2020-06-15 08:52:43 -04:00
|
|
|
[discrete]
|
|
|
|
[[delete-a-data-stream]]
|
|
|
|
=== Delete a data stream
|
|
|
|
|
2020-07-27 10:39:32 -04:00
|
|
|
You can use the Kibana UI to delete a data stream and its backing indices. In
|
|
|
|
Kibana, open the menu and go to *Stack Management > Index Management*. In the
|
|
|
|
*Data Streams* tab, click the trash can icon to delete a stream and its backing
|
|
|
|
indices.
|
|
|
|
|
|
|
|
[role="screenshot"]
|
|
|
|
image::images/data-streams/data-streams-list.png[Data Streams tab]
|
2020-06-15 08:52:43 -04:00
|
|
|
|
2020-07-27 10:39:32 -04:00
|
|
|
You can also use the the <<indices-delete-data-stream,delete data stream API>>
|
|
|
|
to delete a data stream. The following delete data stream API request deletes
|
2020-08-06 09:38:35 -04:00
|
|
|
`my-data-stream`. This request also deletes the stream's backing
|
|
|
|
indices and any data they contain.
|
2020-06-15 08:52:43 -04:00
|
|
|
|
|
|
|
[source,console]
|
|
|
|
----
|
2020-08-06 09:38:35 -04:00
|
|
|
DELETE /_data_stream/my-data-stream
|
2020-06-15 08:52:43 -04:00
|
|
|
----
|
|
|
|
// TEST[continued]
|
|
|
|
|
|
|
|
////
|
|
|
|
[source,console]
|
|
|
|
----
|
2020-07-08 14:04:14 -04:00
|
|
|
DELETE /_data_stream/*
|
|
|
|
DELETE /_index_template/*
|
2020-08-06 09:38:35 -04:00
|
|
|
DELETE /_ilm/policy/my-data-stream-policy
|
2020-06-15 08:52:43 -04:00
|
|
|
----
|
|
|
|
// TEST[continued]
|
|
|
|
////
|