IMPORTANT: No additional bug fixes or documentation updates
will be released for this version. For the latest information, see the
current release documentation.
Create data stream API
editCreate data stream API
editCreates a new data stream.
Data streams require a matching index template. See Set up a data stream.
PUT /_data_stream/my-data-stream
Request
editPUT /_data_stream/<data-stream>
Path parameters
edit-
<data-stream>
-
(Required, string) Name of the data stream to create.
Data stream names must meet the following criteria:
- Lowercase only
-
Cannot include
\
,/
,*
,?
,"
,<
,>
,|
, ` ` (space character),,
,#
,:
-
Cannot start with
-
,_
,+
,.
-
Cannot be
.
or..
- Cannot be longer than 255 bytes (note it is bytes, so multi-byte characters will count towards the 255 limit faster)