Create Indexedit

action: create_index
description: "Create index as named"
options:
  name:
  extra_settings:
  timeout_override:
  continue_if_exception: False
  disable_action: False
filters:
- filtertype: ...
Note

Empty values and commented lines will result in the default value, if any, being selected. If a setting is set, but not used by a given action, it will be ignored.

This action creates the named index.

The extra_settings option allows the addition of extra settings, such as index settings and mappings. An example of how these settings can be used to create an index might be:

extra_settings:
  settings:
    number_of_shards: 1
    number_of_replicas: 0
  mappings:
    type1 :
      properties:
        field1:
          type: string
          index: not_analyzed

Required settingsedit

Optional settingsedit

Tip

See an example of this action in an actionfile here.