← ClaudeAtlas

axiom-auditlisted

Audit Axiom logs to identify and prioritize errors and warnings, research probable causes, and flag log smells. Use when user asks to check Axiom logs, analyze production errors, investigate log issues, or audit logging patterns.
aiskillstore/marketplace · ★ 329 · AI & Automation · score 82
Install: claude install-skill aiskillstore/marketplace
# Axiom Logs Audit Skill Systematically audit Axiom logs to identify, prioritize, and research errors and warnings. ## Setup **Install axiom-mcp:** ```bash go install github.com/axiomhq/axiom-mcp@latest ``` **Install mcptools:** ```bash # macOS brew tap f/mcptools brew install mcp # Windows/Linux go install github.com/f/mcptools/cmd/mcptools@latest ``` **Set credentials:** ```bash export AXIOM_TOKEN="xaat-your-token" export AXIOM_ORG_ID="your-org-id" # Optional ``` Find credentials in repo: ```bash grep -r "AXIOM" . --include="*.env*" --include="*.config.*" ``` ## Usage **List datasets:** ```bash mcp call listDatasets --params '{"arguments":{}}' ~/go/bin/axiom-mcp ``` **Query APL:** ```bash # Query errors mcp call queryApl --params '{"arguments":{"dataset":"logs","apl":"['\''now-24h'\'':now] | where level == \"error\" | summarize count() by message"}}' ~/go/bin/axiom-mcp # Query warnings mcp call queryApl --params '{"arguments":{"dataset":"logs","apl":"['\''now-24h'\'':now] | where level == \"warn\" | summarize count() by message"}}' ~/go/bin/axiom-mcp ``` **Interactive shell (recommended for multiple queries):** ```bash mcp shell ~/go/bin/axiom-mcp ``` ## Audit Process ### 1. Identify Dataset ```bash mcp call listDatasets --params '{"arguments":{}}' ~/go/bin/axiom-mcp ``` Or search codebase for dataset names: ```bash grep -r "axiom.*dataset" . --include="*.ts" --include="*.js" ``` ### 2. Query Errors & Warnings **Errors:** ```apl ['now-24h':now] | where lev