Create or update a stream
Technical Preview
Creates or updates a stream definition. Classic streams can not be created through this API, only updated
[Required authorization] Route required privileges: manage_stream.
Body
object
-
Additional properties are allowed.
Hide stream attributes Show stream attributes object
-
Additional properties are NOT allowed.
Hide ingest attributes Show ingest attributes object
-
Any of: Hide attribute Show attribute
Hide attribute Show attribute
Hide attribute Show attribute
Hide attribute Show attribute
Hide attribute Show attribute
Hide attribute Show attribute
-
Additional properties are NOT allowed.
Hide attribute Show attribute
Hide attribute Show attribute
Hide attribute Show attribute
Hide attribute Show attribute
-
Additional properties are NOT allowed.
-
-
Additional properties are NOT allowed.
Hide wired attributes Show wired attributes object
-
Additional properties are allowed.
Hide stream attributes Show stream attributes object
-
Additional properties are NOT allowed.
Hide ingest attributes Show ingest attributes object
-
Any of: Hide attribute Show attribute
Hide attribute Show attribute
Hide attribute Show attribute
Hide attribute Show attribute
Hide attribute Show attribute
Hide attribute Show attribute
-
Additional properties are NOT allowed.
Hide attribute Show attribute
Hide attribute Show attribute
Hide attribute Show attribute
Hide attribute Show attribute
-
Additional properties are NOT allowed.
-
-
Additional properties are NOT allowed.
-
Additional properties are allowed.
PUT
/api/streams/{name}
curl \
--request PUT 'http://localhost:5601/api/streams/{name}' \
--header "Authorization: $API_KEY" \
--header "Content-Type: application/json" \
--header "kbn-xsrf: true" \
--data '{"stream":{"description":"string","ingest":{"lifecycle":{"dsl":{"data_retention":"string"}},"processing":[{"date":{"description":"string","if":{"field":"string","operator":"exists"},"ignore_failure":true,"field":"string","formats":["string"],"locale":"string","output_format":"string","target_field":"string","timezone":"string"}}],"wired":{"fields":{},"routing":[{"destination":"string","if":{"field":"string","operator":"exists"}}]}}},"dashboards":["string"],"queries":[{"id":"string","title":"string","kql":{"query":"string"}}]}'