Quickstart
Go from zero to confident with Axiom. Learn datasets, queries, virtual fields, monitors, and dashboards in progressive steps.
This guide takes you from foundational knowledge to advanced proficiency with Axiom. The sections are structured to build upon one another but can also serve as standalone references. By the end, you can independently query data, diagnose performance, derive insights, and set up proactive alerting.
Axiom fundamentals
Axiom is the modern machine data platform. Machine data is any record a system produces: logs, distributed traces, metrics, and events like product analytics, marketing attribution, or security audit trails. Axiom stores and queries all of it through one engine.
Datasets store related machine data, similar to a table in a traditional database. For example, the Axiom Playground includes datasets like sample-http-logs for HTTP request logs and github-push-event for GitHub activity.
Fields are named pieces of data on each record, like columns in a spreadsheet. Fields have a name (for example, status, resp_body_size_bytes, geo.city) and a value. Axiom supports various data types including strings, numbers, booleans, and complex JSON objects.
Send data to Axiom
You can send your first event with a single HTTP request:
To send events continuously, Axiom supports a wide range of tools and libraries:
- OpenTelemetry for industry-standard instrumentation of traces, logs, and metrics.
- Axiom API for direct HTTP ingestion from any language or platform.
- Language libraries for JavaScript, Python, Go, Rust, .NET, and more.
- Log shippers like Vector, Fluent Bit, and Logstash.
- Platform integrations for AWS, Kubernetes, Vercel, and Cloudflare Logpush.
For the full list, see Methods for sending data.
Explore your data
Start by identifying the correct dataset in the Datasets tab. You can explore the fields within a dataset to find relevant information. For example, in sample-http-logs you might look at resp_header_size_bytes (response size), status (HTTP status code), and geo.country (geographic origin).
Build your first queries
You typically interact with this data by creating queries using one of the following interfaces:
- Builder: A point-and-click interface that helps you build filters and aggregations without writing code. It's excellent for simple, quick-look analyses.
- Editor: An interface where you can write queries using powerful, text-based query languages for sophisticated analysis. Use APL (Axiom Processing Language) for logs, traces, and events, and MPL (Metrics Processing Language) for metrics.
- Axiom API: Query your data programmatically.
- AI-assisted query building: Generate APL queries from natural language descriptions after pressing
Cmd+K(macOS) orCtrl+K(Windows/Linux) in the Query tab. - MCP Server and Skills: Enable AI agents to query your data. Agents without an existing organization can provision their own temporary organization.
An APL query starts with a data source, followed by operators connected by the pipe | character. Each pipe takes the output of the previous line and uses it as input for the next, allowing you to chain operations. A common pattern is dataset, filter (where), transform (extend), analyze (summarize).
This example counts distinct users per day, grouped by HTTP method:
['sample-http-logs']selects the dataset.|passes the data to the next operator.summarizegroups rows that share values in thebyclause.dcount(id)calculates the distinct count of theidfield. This is a probabilistic function that provides a highly accurate approximation and runs faster than an exact count.by bin(_time, 1d), methodgroups by time binned into 1-day intervals and by HTTP method.
Set up monitors
Monitors run queries on a schedule and trigger notifications when conditions are met. This moves you from reactive investigation to proactive awareness.
- Threshold monitors trigger when an aggregated value crosses a threshold (for example, error counts above 100 in 5 minutes). This is the most common type.
- Match monitors trigger for each individual event that matches a specific pattern (for example, a critical error message). Use these sparingly for high-volume events.
- Anomaly monitors use machine learning to detect unexpected deviations from a historical baseline, without a static threshold.
This example creates a threshold monitor to get a notification if the number of server errors exceeds a threshold.
-
Write and test the query:
APL -
Go to Monitors tab and create a new threshold monitor.
-
Paste your query and set the trigger condition, for example,
When error_count is above 50. -
Set the schedule, for example, evaluate every 5 minutes.
-
Select or create a notifier (Slack, PagerDuty, email, and more).
Build dashboards
Dashboards are collections of saved queries visualized as charts, tables, and other elements. They provide a single view for monitoring a service, tracking an experiment, or sharing key metrics.
This example creates a dashboard to monitor HTTP request performance.
Element 1: P75 and P95 latency (time series)
This query calculates the 75th and 95th percentiles of request duration and displays them as a time series.
Element 2: Requests by country (table)
This query counts the number of requests by country and displays them as a table.
Element 3: Total distinct users (statistic)
This query counts the number of distinct users and displays them as a statistic.
What's next
- APL introduction for the full query language reference.
- Sample queries for real-world APL examples you can run in the Playground.
- Send data to Axiom to connect your own data sources.
- Monitor examples for more alerting patterns.