Loading...
Loading...
Axiom observability API for logs and analytics. Use when user mentions "logs", "query logs", "Axiom", or asks about event analytics.
npx skill4agent add vm0-ai/vm0-skills axiomOfficial docs:https://axiom.co/docs/restapi/introduction
| Type | Prefix | Use Case |
|---|---|---|
| API Token | | Most operations (datasets, ingest, queries, monitors) |
| Personal Access Token (PAT) | | Full account access (required for |
# Required: API Token for most operations
export AXIOM_TOKEN="xaat-xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"Important: When usingin a command that pipes to another command, wrap the command containing$VARin$VAR. Due to a Claude Code bug, environment variables are silently cleared when pipes are used directly.bash -c '...'bashbash -c 'curl -s "https://api.example.com" -H "Authorization: Bearer $API_KEY"'
https://us-east-1.aws.edge.axiom.cohttps://eu-central-1.aws.edge.axiom.cohttps://api.axiom.cobash -c 'curl -s "https://api.axiom.co/v2/datasets" -H "Authorization: Bearer ${AXIOM_TOKEN}"'bash -c 'curl -s "https://api.axiom.co/v2/datasets/my-logs" -H "Authorization: Bearer ${AXIOM_TOKEN}"'/tmp/axiom_request.json{
"name": "my-logs",
"description": "Application logs"
}bash -c 'curl -s -X POST "https://api.axiom.co/v2/datasets" -H "Authorization: Bearer ${AXIOM_TOKEN}" -H "Content-Type: application/json" -d @/tmp/axiom_request.json'/tmp/axiom_request.json[
{"message": "User logged in", "user_id": "123", "level": "info"}
]bash -c 'curl -s -X POST "https://us-east-1.aws.edge.axiom.co/v1/ingest/my-logs" -H "Authorization: Bearer ${AXIOM_TOKEN}" -H "Content-Type: application/json" -d @/tmp/axiom_request.json'/tmp/axiom_ndjson.ndjson{"message": "Event 1", "level": "info"}
{"message": "Event 2", "level": "warn"}bash -c 'curl -s -X POST "https://us-east-1.aws.edge.axiom.co/v1/ingest/my-logs" -H "Authorization: Bearer ${AXIOM_TOKEN}" -H "Content-Type: application/x-ndjson" -d @/tmp/axiom_ndjson.ndjson'/tmp/axiom_request.json{
"apl": "[\"my-logs\"] | where level == \"error\" | limit 10",
"startTime": "2024-01-01T00:00:00Z",
"endTime": "2025-12-31T23:59:59Z"
}bash -c 'curl -s -X POST "https://api.axiom.co/v1/datasets/_apl?format=tabular" -H "Authorization: Bearer ${AXIOM_TOKEN}" -H "Content-Type: application/json" -d @/tmp/axiom_request.json'/tmp/axiom_request.json{
"apl": "[\"my-logs\"] | summarize count() by level",
"startTime": "2024-01-01T00:00:00Z",
"endTime": "2025-12-31T23:59:59Z"
}bash -c 'curl -s -X POST "https://api.axiom.co/v1/datasets/_apl?format=tabular" -H "Authorization: Bearer ${AXIOM_TOKEN}" -H "Content-Type: application/json" -d @/tmp/axiom_request.json'/tmp/axiom_request.json{
"datasets": ["my-logs"],
"type": "deployment",
"title": "v1.2.0 deployed",
"time": "2024-12-24T10:00:00Z"
}bash -c 'curl -s -X POST "https://api.axiom.co/v2/annotations" -H "Authorization: Bearer ${AXIOM_TOKEN}" -H "Content-Type: application/json" -d @/tmp/axiom_request.json'bash -c 'curl -s "https://api.axiom.co/v2/monitors" -H "Authorization: Bearer ${AXIOM_TOKEN}"'bash -c 'curl -s -X DELETE "https://api.axiom.co/v2/datasets/my-logs" -H "Authorization: Bearer ${AXIOM_TOKEN}"'["dataset-name"]| Query | Description |
|---|---|
| Get first 10 events |
| Filter by field value |
| Search in text |
| Count by group |
| Hourly average |
| Latest 100 events |
| Events in last hour |
us-east-1.aws.edge.axiom.coeu-central-1.aws.edge.axiom.coapi.axiom.coX-RateLimit-RemainingstartTimeendTime