mirror of
https://github.com/honeymoose/OpenSearch.git
synced 2025-03-09 14:34:43 +00:00
This makes the data_stream timestamp field specification optional when defining a composable template. When there isn't one specified it will default to `@timestamp`. (cherry picked from commit 5609353c5d164e15a636c22019c9c17fa98aac30) Signed-off-by: Andrei Dan <andrei.dan@elastic.co>
60 lines
1001 B
Plaintext
60 lines
1001 B
Plaintext
[role="xpack"]
|
|
[[indices-delete-data-stream]]
|
|
=== Delete data stream API
|
|
++++
|
|
<titleabbrev>Delete data stream</titleabbrev>
|
|
++++
|
|
|
|
Deletes one or more <<data-streams,data streams>> and their backing
|
|
indices. See <<delete-a-data-stream>>.
|
|
|
|
////
|
|
[source,console]
|
|
----
|
|
PUT /_index_template/template
|
|
{
|
|
"index_patterns": ["my-data-stream*"],
|
|
"template": {
|
|
"mappings": {
|
|
"properties": {
|
|
"@timestamp": {
|
|
"type": "date"
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"data_stream": {}
|
|
}
|
|
|
|
PUT /_data_stream/my-data-stream
|
|
----
|
|
// TESTSETUP
|
|
////
|
|
|
|
[source,console]
|
|
----
|
|
DELETE /_data_stream/my-data-stream
|
|
----
|
|
|
|
////
|
|
[source,console]
|
|
----
|
|
DELETE /_index_template/template
|
|
----
|
|
// TEST[continued]
|
|
////
|
|
|
|
[[delete-data-stream-api-request]]
|
|
==== {api-request-title}
|
|
|
|
`DELETE /_data_stream/<data-stream>`
|
|
|
|
|
|
[[delete-data-stream-api-path-params]]
|
|
==== {api-path-parms-title}
|
|
|
|
`<data-stream>`::
|
|
(Required, string)
|
|
Comma-separated list of data streams to delete.
|
|
Wildcard (`*`) expressions are supported.
|