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.
--indexstringrequired- Target index
--data-filestring- Path to data file (NDJSON, JSON array, or CSV)
--data-dirstring- Path to directory of data files to ingest
--globstring- 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-formatenum-
Input file format: ndjson, json, or csv
Values: ndjson, json, csv
Default:
ndjson --csv-delimiterstring- CSV column delimiter (default: ",")
--csv-columnsstring- Comma-separated list of column names (overrides CSV header row)
--[no-]skip-header- Skip the first row of a CSV file
--flush-bytesnumber-
Batch size threshold in bytes
Default:
5242880 --concurrencynumber-
Number of parallel bulk requests
Default:
5 --retriesnumber-
Max retries per failed batch
Default:
3 --retry-delaynumber-
Initial retry delay in ms (doubles each attempt)
Default:
1000 --pipelinestring- Ingest pipeline name
--routingstring- Custom routing value
--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)