stack kb visualizations upsert-visualization cli command
elastic stack kb visualizations upsert-visualization \
--id <id> \
--type <type> \
[options]
Upsert visualization
Behaviour flags:
--dry-run — validate all inputs and exit without performing any action
--idstringrequired- The visualization identifier, as returned by the create or search endpoints.
--typeenumrequired-
Values: waffle
--breakdown-bystring--data-sourcestring--descriptionstring- The description of the chart. Optional. Any string value or undefined.
--filtersstring[]-
Repeatable: pass
--filtersmultiple times to supply more than one value --ignore-global-filters- When
true, ignores global filters when fetching data for this layer. Defaults tofalse. --metricsstring[]-
Array of metric configurations (minimum 1)
Repeatable: pass
--metricsmultiple times to supply more than one value --querystring--samplingnumber- Sampling factor between 0 (no sampling) and 1 (full sampling).
--stylingstring-
Tag IDs to associate with this visualization.
Repeatable: pass
--tagsmultiple times to supply more than one value --titlestring- The title of the chart displayed in the panel. Optional. Any string value or undefined.
--metricstring--axisstring--layersstring[]-
Chart layers
Repeatable: pass
--layersmultiple times to supply more than one value --legendstring--xstring- Breakdown dimension configuration using date histogram, terms, numeric histogram, value ranges, or custom filters.
--ystring- Breakdown dimension configuration using date histogram, terms, numeric histogram, value ranges, or custom filters.
--tag-bystring--regionstring--rowsstring[]-
Array of operations to split the datatable rows by
Repeatable: pass
--rowsmultiple times to supply more than one value --split-metrics-bystring[]-
Array of operations to split the metric columns by
Repeatable: pass
--split-metrics-bymultiple times to supply more than one value --group-bystring[]-
Array of breakdown dimensions (minimum 1)
Repeatable: pass
--group-bymultiple times to supply more than one value --group-breakdown-bystring[]-
Array of group breakdown dimensions (minimum 1)
Repeatable: pass
--group-breakdown-bymultiple times to supply more than one value --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