stack kb data-views-v2 post-data-views-v2 cli command

Auth required
elastic stack kb data-views-v2 post-data-views-v2 \
  --index-pattern <index-pattern> \
  [options]
		

Create a data view

Behaviour flags:

--dry-run — validate all inputs and exit without performing any action

--index-pattern string required
--allow-hidden-indices
When true, allows the data view to match hidden indices.
--field-filters string[]

Repeatable: pass --field-filters multiple times to supply more than one value

--field-settings string
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.
--name string
The name of the data view. Example: "Sample data view".
--time-field string
--input-file string
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-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}}")
--json

output as JSON