Translate SPL to APL skill
This page explains how to use the Translate SPL to APL skill to give AI coding agents the ability to convert Splunk queries to Axiom.
The Translate SPL to APL skill helps AI agents translate Splunk queries to Axiom:
- Command mappings: Complete translation of SPL commands to APL operators
- Function equivalents: Mapping of SPL functions to APL functions
- Syntax transformations: Handle differences in time handling, field escaping, and query structure
- Common patterns: Ready-to-use translations for frequent query patterns
- Performance tips: Guidance on writing efficient APL queries
Prerequisites
- Create an Axiom account.
- Create a dataset in Axiom where you send your data.
- Create an API token in Axiom with permissions to ingest data to the dataset you have created.
Install Axiom Skills
Install Axiom Skills as a plugin to get all skills together with the hosted Axiom MCP Server (using OAuth), or use the standalone skills installer.
Install as a plugin
-
Claude Code:
shellRestart Claude Code, and then run
/mcpto authorize Axiom in your browser. -
Codex:
shellAuthorize Axiom in your browser when prompted. If you already added Axiom MCP manually, keep one connection to avoid duplicate tools.
-
Cursor:
On Teams or Enterprise plans, an admin must enable Allow Local Plugin Imports, or import
axiomhq/skillsthrough Plugins & MCPs > Add Marketplace > Import from Repo in the Cursor dashboard. To install locally, clone into Cursor’s local plugin directory:shellReload Cursor and authorize Axiom when prompted.
-
Amp:
Clone into Amp’s system plugin directory, and then add Axiom MCP Server separately (Amp plugins can’t declare MCP servers):
shellRestart Amp and authorize Axiom when prompted.
-
Gemini CLI:
shellRestart Gemini CLI, and then run
/mcp auth axiomto authorize Axiom.
Install standalone skills
To install all skills:
This command installs skills without configuring Axiom MCP. For alerting, dashboard, and cost-control workflows, connect Axiom MCP Server separately and sign in.
Connect Axiom MCP
For alerting, dashboard, and cost-control tasks, connect Axiom MCP Server and sign in to your Axiom organization. These skills use MCP for all Axiom operations. No ~/.axiom.toml file or SRE configuration is required.
If MCP is disconnected or authentication fails, the agent asks you to connect or sign in before continuing. If a task requires a tool or permission you lack, the agent explains what is missing.
Configure Axiom credentials
For skills that access Axiom through scripts, configure credentials separately from MCP authentication:
- For the SRE skill, follow Set up the SRE skill to configure
~/.config/axiom-sre/config.toml. - For the ingest skill, use
~/.axiom.tomlto select an existing organization. Grant the token ingest permission. To create a dataset or verify the ingested data with a query, also grant the matching create or query permission. For a temporary organization, the create organization skill stores the credentials during setup.
For ingestion into an existing organization, use this configuration:
Use Translate SPL to APL skill
The Translate SPL to APL skill activates automatically when you ask your AI agent to:
- Translate SPL queries to APL
- Migrate Splunk queries to APL
- Find APL equivalents of SPL commands
- Convert Splunk dashboards or saved searches
Example prompts:
- "Convert this SPL query to APL:
index=logs | stats count by host" - "What's the APL equivalent of
timechart span=5m count by status?" - "Translate this Splunk search to APL"
- "How to write
evalstatements in APL?"