Skip to main content
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

Install translate SPL to APL skill

Choose one of the following ways to install the translate SPL to APL skill:
Install all Axiom skills at once for Claude Code, Cursor, and other Claude-compatible agents:
npx skills add axiomhq/skills

Configure Axiom credentials

All Axiom Skills share the same credential configuration. Create a configuration file at ~/.axiom.toml:
~/.axiom.toml
[deployments.dev]
url = "https://api.axiom.co"
token = "API_TOKEN"
org_id = "ORGANIZATION_ID"
Replace API_TOKEN with the Axiom API token you have generated. For added security, store the API token in an environment variable.Replace ORGANIZATION_ID with your organization ID. For more information, see Determine organization ID.For token creation and scoping guidance, see Token hygiene for AI agents.

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 eval statements in APL?”