Create or update a stream
Technical Preview
Spaces method and path for this operation:
Refer to Spaces for more information.
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
-
Additional properties are NOT allowed.
Hide processing attribute Show processing attribute object
-
Additional properties are NOT allowed.
Hide settings attributes Show settings attributes object
-
Additional properties are NOT allowed.
-
Additional properties are NOT allowed.
-
Additional properties are NOT allowed.
Hide index.refresh_interval attributes Show index.refresh_interval attributes object
-
-
Additional properties are NOT allowed.
Hide wired attributes Show wired attributes object
-
Hide routing attributes Show routing attributes object
-
Hide queries attributes Show queries attributes object
-
Minimum length is
1. -
Minimum length is
1. -
Additional properties are NOT allowed.
Hide feature attributes Show feature attributes object
-
Additional properties are NOT allowed.
-
-
Additional properties are allowed.
Hide stream attributes Show stream attributes object
-
Additional properties are NOT allowed.
Hide ingest attributes Show ingest attributes object
-
Additional properties are NOT allowed.
Hide processing attribute Show processing attribute object
-
Additional properties are NOT allowed.
Hide settings attributes Show settings attributes object
-
Additional properties are NOT allowed.
-
Additional properties are NOT allowed.
-
Additional properties are NOT allowed.
Hide index.refresh_interval attributes Show index.refresh_interval attributes object
-
-
Additional properties are NOT allowed.
-
Hide queries attributes Show queries attributes object
-
Minimum length is
1. -
Minimum length is
1. -
Additional properties are NOT allowed.
Hide feature attributes Show feature attributes object
-
Additional properties are NOT allowed.
-
-
Additional properties are allowed.
Hide stream attributes Show stream attributes object
-
Additional properties are NOT allowed.
-
Hide queries attributes Show queries attributes object
-
Minimum length is
1. -
Minimum length is
1. -
Additional properties are NOT allowed.
Hide feature attributes Show feature attributes object
-
Additional properties are NOT allowed.
-
curl \
--request PUT 'https://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":{"steps":[{"action":"grok","customIdentifier":"string","description":"string","from":"string","ignore_failure":true,"ignore_missing":true,"patterns":["string"],"where":{"field":"string","range":{}}}]},"settings":{"index.number_of_replicas":{"value":42.0},"index.number_of_shards":{"value":42.0},"index.refresh_interval":{"value":"string"}},"wired":{"fields":{},"routing":[{"destination":"string","status":"enabled","where":{"contains":"string","endsWith":"string","eq":"string","field":"string","gt":"string","gte":"string","lt":"string","lte":"string","neq":"string","range":{"gt":"string","gte":"string","lt":"string","lte":"string"},"startsWith":"string"}}]}}},"dashboards":["string"],"queries":[{"id":"string","title":"string","feature":{"filter":{"contains":"string","endsWith":"string","eq":"string","field":"string","gt":"string","gte":"string","lt":"string","lte":"string","neq":"string","range":{"gt":"string","gte":"string","lt":"string","lte":"string"},"startsWith":"string"},"name":"string"},"kql":{"query":"string"}}],"rules":["string"]}'