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

/axiom-spl-to-apl

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

Translates Splunk SPL queries to Axiom APL. Provides command mappings, function equivalents, and syntax transformations. Use when migrating from Splunk, converting SPL queries, or learning APL equivalents of SPL patterns.

Use this Skill: https://skilld.dev/gh/axiomhq/skills/axiom-spl-to-apl

Nothing lands on disk. Nothing to clean up.

Fork this Skill

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

README.md

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

axiom-spl-to-apl

Translates Splunk SPL queries to Axiom APL. Provides command mappings, function equivalents, and syntax transformations.

What It Does

  • Command Mapping - SPL commands to APL operators (stats→summarize, eval→extend, etc.)
  • Function Translation - Aggregation and string functions with syntax differences
  • Time Handling - SPL time pickers to explicit APL time filters
  • Pattern Examples - Common query patterns side-by-side

Installation

# Amp
amp skill add axiomhq/skills/axiom-spl-to-apl

# npx (Claude Code, Cursor, Codex, and more)
npx skills add axiomhq/skills -s axiom-spl-to-apl

Quick Reference

SPL APL
index=logs ['logs']
stats count by host summarize count() by host
eval x = y * 2 extend x = y * 2
table field1, field2 project field1, field2
timechart span=5m count summarize count() by bin(_time, 5m)
top 10 uri summarize count() by uri | top 10 by count_
dedup user where isnotnull(user) | summarize arg_max(_time, *) by user
rex "user=(?<u>\\w+)" extend u = extract("user=(\\w+)", 1, field)

Key Differences

  1. Time is explicit in APL - Add where _time between (ago(1h) .. now())
  2. Parentheses required - count() not count
  3. Field escaping - Use ['field.with.dots'] for dotted fields
  4. Case sensitivity - Use _cs variants for faster queries (has_cs, contains_cs)

Configuration

This skill translates queries but doesn't execute them directly. To run translated queries, configure ~/.axiom.toml:

[deployments.prod]
url = "https://api.axiom.co"
token = "xaat-your-api-token"
org_id = "your-org-id"

Get your org_id from Settings → Organization. For the token, create a scoped API token (Settings → API Tokens) with the permissions your workflow needs. Avoid Personal Access Tokens for automated tooling.

Related Skills

  • axiom-sre - For running translated queries (includes interactive setup)
  • axiom-build-dashboard - For creating dashboards from translated queries

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.

No alerts4d3 checks · Risk SAFE
  • Gen Agent Trust Hub4d

    This skill provides a comprehensive translation layer for converting Splunk SPL queries into Axiom APL. It contains mapping tables, function equivalents, and examples, but includes no executable scripts or dangerous commands.

  • Socket5d

    No alerts

  • Snyk4d

    Risk: LOW · No issues

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 5 days ago
  • splunk
  • spl
  • apl
  • axiom
  • query-translation
  • log-analysis
  • migration
  • aggregation

README badge

README badge for axiomhq/skills/axiom-spl-to-apl

Translates Splunk SPL queries to Axiom APL with command and function mappings, syntax transformations, and time-range handling. Covers stats-to-summarize, eval-to-extend, regex patterns, and common migration patterns like error-rate calculations and joins.

Generated from the current SKILL.md.

Does this skill help with migrating Splunk queries to Axiom?
Yes. It provides command and function mappings, syntax transformations, and concrete examples for converting SPL queries to APL, including handling of time ranges, aggregations, regex patterns, and joins.
What are the biggest differences between SPL and APL I should know?
Time ranges must be explicit in APL (add `where _time between (ago(...) .. now())`), index searches become dataset references, stats become summarize, and some commands like transaction have no direct equivalent.
Does this cover join operations?
Yes, but APL join is a preview feature limited to 50k rows and supports only inner, innerunique, and leftouter join types — not all SPL join variants.
Are regex patterns handled the same way?
No. SPL rex becomes either APL parse with regex (for pattern matching) or the extract() function, with different syntax for named capture groups.
What should I know about type casting in APL?
Fields like status are often strings. Always cast before numeric operations: use toint(status) >= 500 instead of status >= 500.

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