Axiom stores, searches, and analyzes telemetry data. Export Cloudflare traces and logs to query data and create dashboards.
This guide configures Axiom to receive Cloudflare traces and logs.
Before you begin, you need an active Axiom account ↗︎. You also need Cloudflare logs or traces to export.
Skip this step if you already have a dataset.
- Log in to your Axiom account ↗︎.
- Go to Datasets.
- Select New Dataset.
- Enter a name, such as
cloudflare-otel. - Select Create Dataset.
- Go to Settings > API Tokens.
- Select Create API Token.
- Enter a descriptive name, such as
cloudflare-otel. - Select the Ingest permission.
- Select datasets for the token, or select All Datasets.
- Select Create.
- Copy and securely store the API token.
The API token starts with xaat-.
Axiom provides separate OpenTelemetry Protocol (OTLP) endpoints for traces and logs:
- Traces:
https://api.axiom.co/v1/traces - Logs:
https://api.axiom.co/v1/logs
-
In the Cloudflare dashboard, go to Observability > Destinations.
Go to OpenTelemetry ↗ -
Select Add destination.
-
Configure the destination:
- Destination name: Enter
axiom-tracesoraxiom-logs. - Destination type: Select Traces or Logs.
- OTLP endpoint: Enter the matching Axiom endpoint.
- Destination name: Enter
-
Add an authentication header:
- Header name:
Authorization - Header value:
Bearer <YOUR_API_TOKEN>
- Header name:
-
Add the dataset header:
- Header name:
X-Axiom-Dataset - Header value: Your dataset name
- Header name:
-
Select Save.
Creating a destination does not start exporting telemetry. To export Workers Logs or Workers Traces, configure OpenTelemetry export for your Worker. To export Cloudflare Traces, configure export for your domain.
Data may take several minutes to appear in Axiom.