stack kb data-views-v2 put-data-views-v2-id cli command
Auth required
Idempotent
Scope: global
elastic stack kb data-views-v2 put-data-views-v2-id \
--id <id> \
--index-pattern <index-pattern> \
[options]
Upsert a data view
Behaviour flags:
--dry-run — validate all inputs and exit without performing any action
--idstringrequired- The ID of the data view to create or update.
--index-patternstringrequired- When
true, allows the data view to match hidden indices. --field-filtersstring[]-
Repeatable: pass
--field-filtersmultiple times to supply more than one value --field-settingsstring- Settings for individual fields, keyed by field name. To change how Kibana displays a field from the backing indices, set its label, description, format, or popularity. To define a runtime field, use the runtime field name and set
type. --namestring- The name of the data view. Example: "Sample data view".
--time-fieldstring--input-filestring- path to a JSON file to use as command input
--dry-run- validate all inputs and exit without performing any action (preview changes without applying them)
--no-validate- skip input validation and send the request as-is
--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}}")
--json-
output as JSON