Update data stream settings
- PUT /_data_stream/{name}/_settings
NOTE: Available in 8.19. Not available in earlier versions.
This API can be used to override settings on specific data streams. These overrides will take precedence over what is specified in the template that the data stream matches. To prevent your data stream from getting into an invalid state, only certain settings are allowed. If possible, the setting change is applied to all backing indices. Otherwise, it will be applied when the data stream is next rolled over.
- Index privileges:
manage
Path Parameters
-
nameIndexName | IndexNamerequired -
A comma-separated list of data streams or data stream patterns.
Query Parameters
-
dry_runboolean · default: false If
true, the request does not actually change the settings on any data streams or indices. Instead, it simulates changing the settings and reports back to the user what would have happened had these settings actually been applied.-
master_timeoutstring Duration · default: 30s The period to wait for a connection to the master node. If no response is received before the timeout expires, the request fails and returns an error.
-
timeoutstring Duration · default: 30s The period to wait for a response. If no response is received before the timeout expires, the request fails and returns an error.
Request
Type: IndexSettings
Response
-
data_streamsUpdatedDataStreamSettingsrequired -
namestring IndexNamerequired -
The data stream name.
-
applied_to_data_streambooleanrequired -
If the settings were successfully applied to the data stream (or would have been, if running in
dry_runmode), it istrue. If an error occurred, it isfalse. -
errorstring -
A message explaining why the settings could not be applied to the data stream.
-
settingsIndexSettingsrequired -
The settings that are specfic to this data stream that will override any settings from the matching index template.
-
effective_settingsIndexSettingsrequired -
The settings that are effective on this data stream, taking into account the settings from the matching index template and the settings specific to this data stream.
-
index_settings_resultsIndexSettingResultsrequired -
Information about whether and where each setting was applied.
-
applied_to_data_stream_onlystringrequired -
The list of settings that were applied to the data stream but not to backing indices. These will be applied to the write index the next time the data stream is rolled over.
-
applied_to_data_stream_and_backing_indicesstringrequired -
The list of settings that were applied to the data stream and to all of its backing indices. These settings will also be applied to the write index the next time the data stream is rolled over.