Guides creating and reviewing Kibana dashboard assets in integration packages, covering YAML sources, exported JSON, naming conventions, and data stream alignment for Kibana 9.4+.
Ships in integration-skills. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
Use this skill when tasks include:
kibana/ folders_dev/shared/kibana/data_stream.dataset filteringDo not use this skill as the primary guide for:
create-integration, package-structure)ingest-pipelines)elastic-package-cli)integration-testing → references/system-testing.md)Before creating or updating dashboard assets, verify:
packages/<package_name>/)conditions.kibana.version in manifest.yml. New packages use ^9.4.0
(see package-spec). The floor decides which dashboard settings you may use
(see "Settings that need a newer Kibana" below).Both paths produce saved-object JSON in kibana/dashboard/, which is what
Fleet installs. Dashboards API request bodies (top-level panels,
pinned_panels, config.data_source) are not package assets; never commit
them to kibana/dashboard/.
Write the dashboard as YAML in _dev/shared/kibana/*.yaml and compile it with
kb-dashboard to kibana/dashboard/*.json. Commit both; CI
(validate-yaml-dashboards.yml) fails when they are out of sync. YAML is
diffable and suits LLM-assisted work. It supports ES|QL and Lens panels,
collapsible sections and controls.
Use the compiler and linter versions pinned in the integrations repo
(docs/yaml_dashboards.md and
.github/workflows/validate-yaml-dashboards.requirements.txt); do not use a
newer unpinned version.
REQS=.github/workflows/validate-yaml-dashboards.requirements.txt
uvx --with-requirements "$REQS" --from kb-dashboard-cli==<pinned> kb-dashboard compile --help
uvx --with-requirements "$REQS" --from kb-dashboard-lint==<pinned> kb-dashboard-lint check --help
kibana-dashboards skill from
elastic/agent-skills).# from package root
elastic-package export dashboards
elastic-package edit dashboards
elastic-package export dashboards
If the stack is newer than the package floor, check the exported JSON for settings the floor does not support (see below) before committing.
kibana/: names match the package spec, no stale field
names after mapping changes, queries scoped to the package's datasets.elastic-package check.Dashboards for packages whose floor is 9.4 or later should use the current
Kibana dashboard layout. references/dashboard-design.md has panel sizes, chart
rules and ES|QL patterns. The rules that matter most:
ES|QL: query the package's data streams with a namespace wildcard,
FROM logs-<package>.<dataset>-* (or metrics-…). Never hard-code a
namespace such as -default: the dashboard then shows nothing for policies
that use another namespace. A broad FROM logs-* must be followed by
WHERE data_stream.dataset == "<package>.<dataset>".
Data-view panels: filter on data_stream.dataset, never event.dataset.
Dashboard-level filter: also set a dashboard filter on
data_stream.dataset, so the dashboard is scoped as a whole. The
package-spec validator (SVR00002, "no filter found") does not read filters
inside ES|QL queries, and it only checks by-value panels of type lens,
map or visualization:
lens (kb-dashboard output, older exports): without
a dashboard-level filter elastic-package check fails; adding the filter
is enough to pass.vis (recent Kibana UI exports): the validator skips them,
so the check passes without a filter. Add the dashboard-level filter
anyway.Exclude
SVR00002 in the package's validation.yml only when the panels read
indices that have no data_stream.dataset field, such as transform
destination indices.
Some settings Kibana writes when you build on a newer stack, or that design skills produce by default, do not exist at the 9.4 floor:
| Setting | Needs Kibana | On an older Kibana | Fallback when the package floor is lower |
|---|---|---|---|
Options-list control whose values come from an ES|QL query (values_source: esql) | 9.5 | The control is silently dropped: the dashboard loads with no control | Control on a data view field |
Trend background chart on an ES|QL metric, query filters @timestamp on ?_tstart/?_tend (or uses TS) | 9.5 | The metric shows its value without the trend | Metric without a background chart |
| Trend background chart on an ES|QL metric, query without a time filter | 9.6 | The metric shows its value without the trend | Add the time filter (floor 9.5), or no background chart |
Gradient area fill ("areaFill": "gradient" in saved-object JSON; styling.areas.fill: gradient in the Dashboards API) | 9.6 | Ignored; areas render with a solid fill | Solid area fill (omit the setting) |
The trend background needs a separate trendline layer with a time-bucketed
query. From 9.5, Kibana stores that layer in the saved object when the metric's
query exposes a time field: a WHERE @timestamp ... ?_tstart ... ?_tend filter
or a TS source. Without one, no layer is stored; only Kibana 9.6 rebuilds it
when the dashboard loads. Kibana 9.4 shows no ES|QL trend background even when
the layer is stored.
These were checked by building dashboards through the Dashboards API on 9.6
(imported into 9.4.2, 9.5.3 and 9.5.6) and on 9.5.3 (imported into 9.4.2). The
TS case comes from the Kibana source and was not run.
Use a setting only when the package floor is at or above the version in the table; otherwise use the fallback. Do not raise the package's Kibana floor just to use one of these. The Kibana 9.6 Dashboards API sets the gradient fill on every area layer by default, so remove it from exports when the floor is lower.
<Name> (avoid repeating package name in each panel title)[<Metrics | Logs> <PACKAGE NAME>] <Name>[Metrics System] Host overview, [Logs Nginx] Access overview[<Product> OTel] <Name>
(example: [ActiveMQ OTel] Overview)<Vendor Product> - <Name>) that dashboard generators may
produce{PACKAGE_NAME}-{identifier}.jsonnginx-046212a0-a2a1-11e7-928f-5dbe6f6f5519.jsonlogs-* / metrics-* queries where possible.
data_stream.datasetkibana/dashboard/ and follow expected naming pattern<type>-<package>.<dataset>-*, never a fixed namespacedata_stream.dataset filter is present (or SVR00002 is
excluded for a documented reason)elastic-package check passes for the packagedefault namespace in ES|QL FROM clausesSVR00002 when the panels are of type lens)logs-*/metrics-* queries that cause noisy or slow panelsAfter dashboard updates are in place, continue with:
dashboard-review for reviewing dashboard JSON changes in a PR or branchintegration-testing → references/system-testing.md for system test validationelastic-package-cli for broader check/lint/test command selectionpackage-spec when dashboard changes require a release note entryreferences/dashboard-design.md — Kibana 9.4+ layout, panel sizes, chart rules, ES|QL patternsreferences/kibana-assets-layout.md — kibana/ layout, saved-object anatomy, YAML sourcesWhat SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
/integration-skills:dashboard-guidelinesfrom integration-skills
npx claudepluginhub elastic/integration-skills --plugin integration-skills15 skills in this plugin
/anonymize-logsAnonymize and sanitize customer-provided log files. Performs a line-by-line review and replaces all sensitive values inline, preserving log structure and format exactly — never reformats, re-indents, or restructures content. Use when sanitizing customer logs, sample events, or test fixtures. Invoke manually with /anonymize-logs./cel-programsUse for all CEL and mito work on integrations that collect from APIs — writing CEL programs, cel.yml.hbs templates, manifest configuration, mock-first development with the mito CLI, system test mock setup, and answering CEL/mito questions. Load this skill whenever any data stream uses the cel input type./create-integrationOther plugins' skills for the same job