Loading

stack es helpers bulk-ingest cli command

Auth required Scope: global
elastic stack es helpers bulk-ingest --index <index> [options]
		

Bulk-ingest documents from file, directory, or stdin with automatic batching, concurrency, and retries.

--index string required
Target index
--data-file string
Path to data file (NDJSON, JSON array, or CSV)
--data-dir string
Path to directory of data files to ingest
--glob string
Glob pattern for --data-dir file matching (default: **/.json, or **/.csv when --source-format csv)
--[no-]no-recursive
Do not recurse into subdirectories when using --data-dir
--source-format enum

Input file format: ndjson, json, or csv

Values: ndjson, json, csv

Default: ndjson

--csv-delimiter string
CSV column delimiter (default: ",")
--csv-columns string
Comma-separated list of column names (overrides CSV header row)
--[no-]skip-header
Skip the first row of a CSV file
--flush-bytes number

Batch size threshold in bytes

Default: 5242880

--concurrency number

Number of parallel bulk requests

Default: 5

--retries number

Max retries per failed batch

Default: 3

--retry-delay number

Initial retry delay in ms (doubles each attempt)

Default: 1000

--pipeline string
Ingest pipeline name
--routing string
Custom routing value
--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)