3.3 KiB
layout | title | parent | nav_order | redirect_from | |
---|---|---|---|---|---|
default | Data streams | Index management in Dashboards | 20 |
|
Data streams
Introduced 2.6 {: .label .label-purple }
In OpenSearch Dashboards, the Index Management application allows you to view and manage data streams as shown in the following image.
Viewing a data stream
To view a data stream and its health status, choose Data streams under Index management as shown in the following image.
The following are the three data stream health statuses:
- Green: All primary and replica shards are assigned.
- Yellow: At least one replica shard is not assigned.
- Red: At least one primary shard is not assigned.
Creating a data stream
To create a data stream, perform the following steps:
-
Under Index Management, choose Data streams.
-
Choose Create data stream.
-
Enter a name for the data stream under Data stream name.
-
Ensure that you have a matching index template. This will be populated under Matching index template, as shown in the following image.
-
The Template details and Index alias sections are read-only. This will inform you of the backing indexes used in the data stream.
-
Optionally, under Advanced settings you can specify the number of primary shards, number of replicas, and the refresh interval, as shown in the following image.
-
Choose Create data stream.
Deleting a data stream
To delete a data stream, perform the following steps:
-
Under Index Management, choose Data streams.
-
Select the data stream you would like to delete.
-
Choose Actions, and then choose Delete.
Rolling over a data stream
To perform a rollover operation on a data stream, perform the following steps:
-
Under Index Management, choose Data streams.
-
Choose Actions, and then choose Rollover, as shown in the following image.
-
Under Configure source, select the source data stream on which you want to perform the rollover operation.
-
Choose Rollover, as shown in the following image.
Force merging data streams
To perform a force merge operation on two or more indexes, perform the following steps:
-
Under Index Management, choose Data streams.
-
Select the data streams on which you want to perform the force merge operation.
-
Choose Actions, and then choose Force merge.
-
Under Configure source index, specify the data streams you want to force merge.
-
Optionally, under Advanced settings you can to choose to Flush indices or Only expunge delete and then specify the Max number of segments to merge to as shown in the following image.