Spaces method and path for this operation:
post /s/{space_id}/api/streams/{name}/_fork
Refer to Spaces for more information.
Forks a wired stream and creates a child stream
[Required authorization] Route required privileges: manage_stream.
POST
/api/streams/{name}/_fork
curl \
--request POST 'https://localhost:5601/api/streams/{name}/_fork' \
--header "Authorization: $API_KEY" \
--header "Content-Type: application/json" \
--header "kbn-xsrf: true" \
--data '"{\n \"status\": \"enabled\",\n \"stream\": {\n \"name\": \"logs.nginx.errors\"\n },\n \"where\": {\n \"eq\": \"500\",\n \"field\": \"http.response.status_code\"\n }\n}"'
Request example
{
"status": "enabled",
"stream": {
"name": "logs.nginx.errors"
},
"where": {
"eq": "500",
"field": "http.response.status_code"
}
}