Index of every page on this site: llms.txt
All skills
axiomhq avatar

/axiom-build-dashboard

@5b11222 official
by Axiom, Inc.axiomhq/skills18 stars
2
Run it yourself

Designs and builds Axiom dashboards via API. Covers chart types, APL and metrics/MPL query patterns, SmartFilters, layout, and configuration options. Use when creating dashboards, migrating from Splunk, or configuring chart options.

Use this Skill: https://skilld.dev/gh/axiomhq/skills/axiom-build-dashboard

Nothing lands on disk. Nothing to clean up.

Fork this Skill

Edit a local copy. It keeps the author and licence.

referencesplunk-migration.md

≈1.7k tokens on demand. Your agent reads this file only when SKILL.md points to it.

Splunk Dashboard Migration

Guide for converting Splunk dashboards to Axiom dashboards.


Migration Workflow

  1. Export Splunk dashboard (XML or JSON)
  2. Inventory panels — list each panel with its SPL query and visualization type
  3. Translate SPL → APL using the axiom-spl-to-apl skill
  4. Map visualization types (see table below)
  5. Test queries with explicit time filters in Query tab (dashboards inherit time from UI picker)
  6. Adjust binning for Axiom visualization
  7. Build Axiom dashboard using templates (remove time filters from panel queries)
  8. Validate and deploy with dashboard-validate and dashboard-create

Visualization Type Mapping

Splunk Visualization Axiom Chart Type Notes
Single Value Statistic Direct mapping
Line Chart TimeSeries Ensure bin(_time, ...)
Area Chart TimeSeries Same as line
Column Chart TimeSeries Axiom renders as bars
Bar Chart (horizontal) Table No horizontal bar; use table
Pie Chart Pie Limit to ≤6 categories
Table Table Direct mapping
Events List LogStream Add project-keep. No take N: the Console limits LogStream rows
Choropleth Map Table No map support; use table
Scatter Plot Table No scatter; use table with dimensions

Panel Translation Examples

Note: Dashboard panel queries do NOT need time filters—the dashboard UI time picker applies to all panels automatically. The examples below show the final dashboard query format.

Single Value → Statistic

Splunk:

index=web status>=500
| stats count as errors

Axiom (dashboard panel):

['web-logs']
| where status >= 500
| summarize errors = count()

Timechart → TimeSeries

Splunk:

index=web
| timechart span=5m count by status

Axiom (dashboard panel):

['web-logs']
| summarize count() by bin_auto(_time), status

Stats Table → Table

Splunk:

index=web status>=500
| stats count by uri
| sort - count
| head 10

Axiom (dashboard panel):

['web-logs']
| where status >= 500
| summarize count = count() by uri
| top 10 by count
| project URI = uri, Errors = count

Top Command → Table

Splunk:

index=web
| top limit=10 user_agent

Axiom (dashboard panel):

['web-logs']
| summarize count() by user_agent
| top 10 by count_
| project "User Agent" = user_agent, Count = count_

Events Search → LogStream

Splunk:

index=web status>=500
| table _time, uri, status, error_message

Axiom (dashboard panel):

['web-logs']
| where status >= 500
| project-keep _time, uri, status, error_message

Chart with Eval → TimeSeries

Splunk:

index=web
| timechart span=5m count as total, count(eval(status>=500)) as errors
| eval error_rate = round(errors/total*100, 2)

Axiom (dashboard panel):

['web-logs']
| summarize 
    total = count(),
    errors = countif(status >= 500)
  by bin_auto(_time)
| extend error_rate = round(100.0 * errors / total, 2)
| project _time, error_rate

Time Range Translation

Splunk dashboards use time pickers. Axiom dashboards also have a time picker that automatically scopes all queries—panel queries don't need explicit time filters.

For ad-hoc testing in the Query tab, use these time filters:

Splunk Time Picker Axiom APL (for Query tab testing)
Last 15 minutes where _time between (ago(15m) .. now())
Last 60 minutes where _time between (ago(1h) .. now())
Last 4 hours where _time between (ago(4h) .. now())
Last 24 hours where _time between (ago(24h) .. now())
Last 7 days where _time between (ago(7d) .. now())
Today where _time between (startofday(now()) .. now())
Yesterday where _time between (startofday(ago(1d)) .. startofday(now()))

Remember: Remove time filters when placing queries in dashboard panels.


Binning Adjustment

Splunk timechart span= maps to Axiom bin(_time, ...).

Splunk Axiom
span=1m bin(_time, 1m)
span=5m bin(_time, 5m)
span=1h bin(_time, 1h)
span=1d bin(_time, 1d)

Or use bin_auto(_time) for automatic sizing based on time range.


Field Name Mapping

Splunk and Axiom may have different field names for the same data.

Concept Splunk (common) Axiom (common)
Timestamp _time _time
Raw event _raw _raw or structured fields
Source source _source or custom
Host host host or ['kubernetes.node.name']
Index index N/A (use dataset)

Tip: Run getschema on your Axiom dataset to discover actual field names:

['your-dataset'] | where _time between (ago(1h) .. now()) | getschema

Features Without Direct Equivalents

Splunk Feature Axiom Approach
transaction Use summarize with make_list() grouped by session/trace
streamstats No direct equivalent; approximate with window functions
eventstats Use subquery + join
Drilldown actions Use SmartFilter for interactive filtering
Trellis layout Create separate panels per dimension
Real-time search Use short time window + fast refresh

Common Migration Pitfalls

Unbounded Results

Problem: Splunk implicitly limits; Axiom may return all rows. Fix: Add | top N by ... or | take N for tables. LogStream needs neither: the Console limits it.

Case Sensitivity

Problem: Splunk search is case-insensitive by default. Fix: Use has (case-insensitive) or tolower() for matching.

Field Escaping

Problem: Splunk uses bare field names; Axiom needs brackets for dots. Fix: field.name → ['field.name']

Different Aggregation Names

Problem: Function names differ between SPL and APL. Fix: Consult axiom-spl-to-apl skill for complete mapping.


Migration Checklist

  • Inventory all panels from Splunk dashboard
  • Map each panel's visualization type
  • Translate SPL queries using axiom-spl-to-apl
  • Verify field names with getschema
  • Test queries in Query tab (with time filters for testing)
  • Add top N or take N where needed
  • Test each query individually in Axiom
  • Build dashboard JSON (remove time filters from panel queries)
  • Validate with dashboard-validate
  • Deploy with dashboard-create
  • Compare visually to original Splunk dashboard

Source: SKILL.md on GitHub

skilld matched fixed text patterns in SKILL.md and file names. Patterns miss obfuscated code.

skilld run checks every file with the same patterns. It asks for approval before it loads a Skill with a behavior marked Needs approval.

2 warnings5d3 checks · Risk SAFE
  • Gen Agent Trust Hub7d

    The skill provides a comprehensive toolkit for designing, building, and managing Axiom dashboards via the official API. It adheres to security best practices for secret management and network operations. No malicious patterns such as prompt injection, obfuscation, or unauthorized data exfiltration were detected.

  • Socket5d

    1 alert: gptAnomaly

  • Snyk7d

    Risk: MEDIUM · 1 issue

Signed by skilld at 5b11222. This ties the file your Agent reads to that commit on GitHub. It does not review the instructions.

Last checked against GitHub 2 hours ago.

Activeupdated 3 weeks ago
  • axiom
  • dashboards
  • apl
  • mpl
  • metrics
  • monitoring
  • visualization
  • queries
  • logs
  • timeseries

README badge

README badge for axiomhq/skills/axiom-build-dashboard

Builds and configures Axiom dashboards via API, covering APL and metrics/MPL queries, SmartFilters, chart types, and layout composition. Targets Axiom users designing new dashboards, migrating from Splunk or Grafana, or configuring chart options for observability and incident response.

Generated from the current SKILL.md.

Does this skill work with both metrics and events/logs datasets?
Yes. The skill covers two separate blueprints: APL for events/logs datasets and MPL for metrics datasets. Use `scripts/metrics/datasets` to check the dataset kind first.
Can I migrate dashboards from Splunk or Grafana?
Yes. The skill includes workflows for both: extract SPL and translate via spl-to-apl for Splunk, or project the canonical panel spec and translate PromQL for Grafana.
What happens if a requested panel can't be computed?
Replace it with a Note panel documenting the blocker. Substituting a different quantity is never acceptable, even with a disclaimer.
Do I need to include _time filters in dashboard chart queries?
No. Dashboard chart queries inherit the time range from the picker, so _time filters should be omitted. Only ad-hoc queries (Axiom Query tab, axiom-sre) need explicit `where _time between` clauses.
What tools do I use to build and deploy dashboards?
The skill provides scripts including `chart-add` (emit individual charts), `layout-pack` (compose layout), and `dashboard-assemble` (validate and emit the final dashboard JSON).

Generated from the current SKILL.md. These answers refresh after source changes.