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

/axiom-ingest

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

Send data to Axiom. Picks an org from ~/.axiom.toml, or provisions a temporary one when none is configured, creates the dataset, ingests JSON, NDJSON, or CSV, and confirms with a query. Use when asked to send, ingest, upload, or load data or events into Axiom or a new Axiom dataset.

Use this Skill: https://skilld.dev/gh/axiomhq/skills/axiom-ingest

Nothing lands on disk. Nothing to clean up.

Fork this Skill

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

SKILL.md

≈74 tokens for metadata: the name and description. ≈803 when used: this file. ≈113 more on demand in 1 file.

Description uses 3.7% of example budget

Before choosing a Skill, your Agent reads its name and description. All available Skills share that space.

  • A shorter description leaves more room for other Skills. This entry exceeds our 1% size suggestion.

In our Claude Code example, all Skill names and descriptions share 8,000 characters. This Skill uses ≈298 characters, or 3.7%.

The 1% threshold is a size suggestion. Longer descriptions can still fit.

Your model, settings, and other Skills decide how much text your Agent can read.

Example settings and source

The example uses a 200k-token context and default Claude Code settings. The count includes the name, description, separators, and when_to_use when present. Codex also counts local file paths.

Skit's source and limits: Codex 0.160.1, Claude Code 2.1.292.

axiom-ingest

Get data into an Axiom dataset with the fewest questions.

1. Choose an org

List configured deployments:

grep -o '^\[deployments\.[^]]*\]' ~/.axiom.toml 2>/dev/null
Found Do
None, and no Axiom MCP connection Follow the axiom-create-org skill to provision a temporary org, then continue here with its org id as the deployment.
None, but Axiom MCP is connected Ask once: create an API token in that org and add it to ~/.axiom.toml, or use a new temporary org. For a new dataset the token needs dataset create, ingest, and query permissions. MCP alone cannot ingest.
One Use it. Say which org you are writing to before you write.
Several Ask once: which deployment, or a new temporary org.

If the user named an org or deployment, use it and skip the table.

Load the deployment without printing the token:

cfg() { awk -F'"' -v d="[deployments.$1]" -v k="$2" '$0==d{f=1;next} /^\[/{f=0} f&&$1~"^"k" *= *$"{print $2}' ~/.axiom.toml; }
d=<deployment>; url=$(cfg "$d" url); token=$(cfg "$d" token); org=$(cfg "$d" org_id)
H=(-sS -H "Authorization: Bearer $token" -H "X-Axiom-Org-Id: $org")

2. Create the dataset

Names use letters, digits, -, _, and .. Pick a name from the task if the user gave none.

edge=$(curl "${H[@]}" -H 'Content-Type: application/json' -X POST "$url/v2/datasets" \
  -d '{"name": "<dataset>", "description": "<why>"}' | jq -r '.edgeDeploymentUrl // .message')
  • dataset license limit exceeded (HTTP 400) means the org has no dataset slots left. Ask whether to reuse an existing dataset or use another org.
  • entity exists (HTTP 409) means the name is taken. For a "new dataset" request, pick another name.
  • token does not have access to resource: datasets with action: create (HTTP 403) means the token can't create datasets. Ask the user to create the dataset or use a token that can, or send to an existing dataset.

To send to an existing dataset, skip the create call and read its edge URL instead:

edge=$(curl "${H[@]}" "$url/v2/datasets/<dataset>" | jq -r .edgeDeploymentUrl)

3. Ingest

Send to the dataset's edge URL. Set Content-Type to match the data:

Data Content-Type
JSON array of objects application/json
One JSON object per line application/x-ndjson
CSV with a header row text/csv
curl "${H[@]}" -H 'Content-Type: application/x-ndjson' -X POST "$edge/v1/ingest/<dataset>" \
  --data-binary @events.ndjson | jq '{ingested, failed, failures}'
  • _time sets each event's timestamp. Without it, Axiom uses the ingest time.
  • Any failed count above 0 needs fixing; failures says why.

4. Confirm

curl "${H[@]}" -H 'Content-Type: application/json' -X POST "$edge/v1/query/_apl?format=tabular" \
  -d "{\"apl\": \"['<dataset>'] | count\"}" | jq '.tables[0].columns'

New events can take a few seconds to show up. If the query returns HTTP 403, the token can't query; report the ingested count from step 3 instead. Report the org, dataset, and event count. If the org is temporary, also give the claim URL and expiry as axiom-create-org describes.

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 alerts25d3 checks · Risk SAFE
  • Gen Agent Trust Hub25d

    The skill manages data ingestion into Axiom and interacts with local configuration files and remote APIs. While it follows standard developer workflows for a logging/analytics service, it involves reading local configuration files and performing network operations with user-influenced data.

  • Socket25d

    No alerts

  • Snyk25d

    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 1 hour ago.

Activeupdated 4 weeks ago

README badge

README badge for axiomhq/skills/axiom-ingest