Custom panel examples

Each example on this page shows what a custom panel can do that other panel types can't, with the query and the template that produce it. Three of them were generated with Elastic Agent Builder chat and include the prompt.

To try an example, add a custom panel from the dashboard, paste the query into Data source (ES|QL) and the template into Template (HTML), then select Run preview. The queries use the sample data sets named in each example. The screenshots use the dark theme. Templates that use the theme properties render in the light theme as well.

You can change any template, whether generated or hand-written, as long as it follows the LiquidJS syntax. Edit it in the flyout, or ask Elastic Agent Builder to refine it. Templates that use the --cc-color-* theme properties follow the Kibana theme.

A chart type that isn't available in Visualizations and is complex to build as a Vega visualization. This panel maps the six busiest destination countries in the web logs to the response codes they received. The ribbon thickness follows the count, the response codes are colored by class (2xx, 4xx, 5xx), and hovering a ribbon shows its value with a CSS-only tooltip. Sample data: Sample web logs.

Sankey diagram with colored ribbons flowing from six destination countries to three response codes

Web traffic drawn as four stages, from source country through host and destination country to response code. The dashed connections come from the query, are colored by response class, and show the request count in a tooltip when you hover them. Data: web server logs in a logstash* index with geo.src, host, geo.dest, and response fields.

Flowchart with four columns of boxes for source countries, hosts, destination countries, and response codes, connected by dashed curved lines

A dashboard header with a logo, a title, and an animated mascot. The logo is an inline SVG path, so it travels with the dashboard when you export it. CSS animations run inside the panel. Sample data: none, the panel has no query.

Dark banner with the Elastic logo, the title Sample logs ops center, and an animated elk mascot

Six metrics from one query, split into two views that the reader switches with tabs. The tabs are hidden radio inputs and :checked rules, so they work without JavaScript. The error rate turns red above 5%. Sample data: Sample web logs.

Card with Traffic and Volume tabs, showing three tiles for requests, unique visitors, and a red error rate

A paragraph that reads like a report, with live values in bold, next to an availability score that changes color and label with its value. Sample data: Sample web logs.

Paragraph summarizing requests, countries, data volume, and failures next to an availability score of 96.8% labeled Degraded

One card per product category, with revenue, order count, a bar relative to the best category, and a badge that changes with the revenue. Sample data: Sample eCommerce orders.

Six category cards with revenue, order count, a progress bar, and Healthy, Watch, or Low badges