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://<KIBANA_URL>/api/streams/{name}/_fork' \
--header "Authorization: $API_KEY" \
--header "Content-Type: application/json" \
--header "kbn-xsrf: true" \
--data '{"where":{"eq":"500","field":"http.response.status_code"},"status":"enabled","stream":{"name":"logs.nginx.errors"}}'
Request example
{
"where": {
"eq": "500",
"field": "http.response.status_code"
},
"status": "enabled",
"stream": {
"name": "logs.nginx.errors"
}
}