stack es bulk cli command
elastic stack es bulk [options]
Bulk index or delete documents.
--indexstring- The name of the data stream, index, or index alias to perform bulk actions on.
--[no-]include-source-on-error- True or false if to include the document source in the error message in case of parsing errors.
--[no-]list-executed-pipelines- If
true, the response will include the ingest pipelines that were run for each index or create. --pipelinestring- The pipeline identifier to use to preprocess incoming documents. If the index has a default ingest pipeline specified, setting the value to
_noneturns off the default ingest pipeline for this request. If a final pipeline is configured, it will always run regardless of the value of this parameter. --[no-]refresh-
If
true, Elasticsearch refreshes the affected shards to make this operation visible to search. Ifwait_for, wait for a refresh to make this operation visible to search. Iffalse, do nothing with refreshes. ValidValues:
true,false,wait_for --routingstring-
A custom value that is used to route operations to a specific shard.
Repeatable: pass
--routingmultiple times to supply more than one value --[no-]source-
Indicates whether to return the
_sourcefield (trueorfalse) or contains a list of fields to return.Repeatable: pass
--sourcemultiple times to supply more than one value --source-excludesstring-
A comma-separated list of source fields to exclude from the response. You can also use this parameter to exclude fields from the subset specified in
_source_includesquery parameter. If the_sourceparameter isfalse, this parameter is ignored.Repeatable: pass
--source-excludesmultiple times to supply more than one value --source-includesstring-
A comma-separated list of source fields to include in the response. If this parameter is specified, only these source fields are returned. You can exclude fields from this subset using the
_source_excludesquery parameter. If the_sourceparameter isfalse, this parameter is ignored.Repeatable: pass
--source-includesmultiple times to supply more than one value --timeoutstring- The period each action waits for the following operations: automatic index creation, dynamic mapping updates, and waiting for active shards. The default is
1m(one minute), which guarantees Elasticsearch waits for at least the timeout before failing. The actual wait time could be longer, particularly when multiple waits occur. --wait-for-active-shardsnumber- The number of shard copies that must be active before proceeding with the operation. Set to
allor any positive integer up to the total number of shards in the index (number_of_replicas+1). The default is1, which waits for each primary shard to be active. --[no-]require-alias- If
true, the request's actions must target an index alias. --[no-]require-data-stream- If
true, the request's actions must target a data stream (existing or to be created). --operationsstring[]
--input-filestring- path to a JSON file to use as command input
-V--[no-]version- Print the Elastic CLI version
--config-filestring- path to a config file (default: ~/.elasticrc.yml)
--use-contextstring- override the active context from the config file
--command-profilestring- restrict available commands to a deployment profile (serverless, stack, default)
--[no-]json- output as JSON
--output-fieldsstring- comma-separated list of fields to include in output (dot-notation supported)
--output-templatestring- 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)