Loading

stack es indices put-index-template cli command

Auth required Idempotent Scope: global
elastic stack es indices put-index-template --name <name> [options]
		

Create or update an index template.

--name string required
Index or template name
--[no-]create
If true, this request cannot replace or update existing index templates.
--master-timeout string
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.
--cause string
User defined reason for creating or updating the index template
--index-patterns string

Array of wildcard (*) expressions used to match the names of data streams and indices during creation.

Repeatable: pass --index-patterns multiple times to supply more than one value

--composed-of string[]
An ordered list of component template names. Component templates are merged in the order specified, meaning that the last component template specified has the highest precedence.
--template string
Template to be applied. It may optionally include an aliases, mappings, or settings configuration.
--data-stream string
If this object is included, the template is used to create data streams and their backing indices. Supports an empty object. Data streams require a matching index template with a data_stream object.
--priority number
Priority to determine index template precedence when a new data stream or index is created. The index template with the highest priority is chosen. If no priority is specified the template is treated as though it is of priority 0 (lowest priority). This number is not automatically generated by Elasticsearch.
--version number
Version number used to manage index templates externally. This number is not automatically generated by Elasticsearch. External systems can use these version numbers to simplify template management. To unset a version, replace the template without specifying one.
--meta string
Optional user metadata about the index template. It may have any contents. It is not automatically generated or used by Elasticsearch. This user-defined object is stored in the cluster state, so keeping it short is preferable To unset the metadata, replace the template without specifying it.
--[no-]allow-auto-create
This setting overrides the value of the action.auto_create_index cluster setting. If set to true in a template, then indices can be automatically created using that template even if auto-creation of indices is disabled via actions.auto_create_index. If set to false, then indices or data streams matching the template must always be explicitly created, and may never be automatically created.
--ignore-missing-component-templates string[]
The configuration option ignore_missing_component_templates can be used when an index template references a component template that might not exist
--[no-]deprecated
Marks this index template as deprecated. When creating or updating a non-deprecated index template that uses deprecated components, Elasticsearch will emit a deprecation warning.
--input-file string
path to a JSON file to use as command input
-V --[no-]version
Print the Elastic CLI version
--config-file string
path to a config file (default: ~/.elasticrc.yml)
--use-context string
override the active context from the config file
--command-profile string
restrict available commands to a deployment profile (serverless, stack, default)
--[no-]json
output as JSON
--output-fields string
comma-separated list of fields to include in output (dot-notation supported)
--output-template string
Mustache-like template for custom text output (e.g. "{{id}}: {{name}}")
--[no-]dry-run

validate all inputs and exit without performing any action (preview changes without applying them)