younifyd
Menu

Update data stream settings

Update data stream settings

PUT/_data_stream/{name}/_settings

Use it in a workflow

  1. Add a step and choose the Elasticsearch connector.
  2. Pick the Update data stream settings action (under data stream).
  3. Fill in the fields below, then reference the result from later steps as {{updateDataStreamSettings.response.data}}.

Request

Path parameters

nameoneOfrequired

A comma-separated list of data streams or data stream patterns.

Query parameters

dry_runboolean

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_timeoutoneOf

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.

timeoutoneOf

The period to wait for a response. If no response is received before the timeout expires, the request fails and returns an error.

Request body

Enter the body as JSON in the step's Body field.

indexany
modestring
routing_pathoneOf
soft_deletesany
sortany
number_of_shardsoneOf

Default "1"

number_of_replicasoneOf

Default "0"

number_of_routing_shardsnumber
check_on_startupany

Default "false"

codecstring

Default "LZ4"

routing_partition_sizeany

Default "1"

load_fixed_bitset_filters_eagerlyboolean

Default true

hiddenoneOf

Default "false"

auto_expand_replicasoneOf

Default "false"

mergeany
searchany
refresh_intervalany

Default "1s"

max_result_windownumber

Default 10000

max_inner_result_windownumber

Default 100

max_rescore_windownumber

Default 10000

max_docvalue_fields_searchnumber

Default 100

max_script_fieldsnumber

Default 32

max_ngram_diffnumber

Default 1

max_shingle_diffnumber

Default 3

blocksany
max_refresh_listenersnumber
analyzeany

Settings to define analyzers, tokenizers, token filters and character filters. Refer to the linked documentation for step-by-step examples of updating analyzers on existing indices.

highlightany
max_terms_countnumber

Default 65536

max_regex_lengthnumber

Default 1000

routingany
unassignedany
gc_deletesany

Default "60s"

default_pipelineany

Default "_none"

final_pipelineany

Default "_none"

lifecycleany
provided_nameany
creation_dateany
creation_date_stringany
uuidany
json
{
  "index": null,
  "mode": "string",
  "routing_path": null,
  "soft_deletes": null,
  "sort": null,
  "number_of_shards": "1",
  "number_of_replicas": "0",
  "number_of_routing_shards": 0,
  "check_on_startup": "false",
  "codec": "LZ4",
  "routing_partition_size": "1",
  "load_fixed_bitset_filters_eagerly": true
}

Response

Returns 200 with an object. Read it in later steps with {{updateDataStreamSettings.response.data.<field>}}.

data_streamsarray<object>
nameanyrequired

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_run` mode), it is `true`. If an error occurred, it is `false`.

errorstring

A message explaining why the settings could not be applied to the data stream.

settingsanyrequired

The settings that are specfic to this data stream that will override any settings from the matching index template.

effective_settingsanyrequired

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_resultsanyrequired

Information about whether and where each setting was applied.

json
{
  "data_streams": [
    {
      "name": null,
      "applied_to_data_stream": false,
      "settings": null,
      "effective_settings": null,
      "index_settings_results": null,
      "error": "string"
    }
  ]
}

Need more? See the Elasticsearch guide for connection setup and behaviour shared by every action.

Update data stream settings — Elasticsearch — Documentation