This page explains how to send data from Loki to Axiom.Documentation Index
Fetch the complete documentation index at: https://axiom-mano-support-improvements.mintlify.app/llms.txt
Use this file to discover all available pages before exploring further.
Prerequisites
- Create an Axiom account.
- Create a dataset in Axiom where you send your data.
- Create an API token in Axiom with permissions to ingest data to the dataset you have created.
Configure endpoint in Axiom
- Click Settings > Endpoints.
- Click New endpoint.
- Click .
- Name the endpoint.
- Select the dataset where you want to send data.
- Copy the URL displayed for the newly created endpoint. This is the target URL where you send the data.
Configure Loki
In Loki, specify the following environment variables:hostorurlis the target URL for the endpoint you have generated in Axiom by following the procedure above. For example,https://opbizplsf8klnw.ingress.axiom.co.- Optional: Use
labelsortagsto specify labels or tags for your app.
/loki/api/v1/push), so any client or agent that supports sending data to Loki can send data to Axiom with a configuration change.
Migrate from an existing Loki deployment
If you already run Loki with agents like Promtail, Grafana Alloy, or Grafana Agent, you can redirect your log streams to Axiom by pointing these agents at the Axiom Loki endpoint URL instead of your Loki instance.Send logs from Promtail
In your Promtail configuration, replace the Loki URL in theclients section with the Axiom Loki endpoint URL:
Send logs from Grafana Alloy
In your Grafana Alloy configuration, use theloki.write component with the Axiom Loki endpoint URL:
Send logs using Vector
You can use Vector with theloki sink to forward logs to the Axiom Loki endpoint. This is useful if you want to use Vector as an intermediary to transform or route logs before sending them to Axiom.
For sending data to Axiom, the native Axiom sink for Vector is the recommended approach. Use the Loki sink for Vector only if you specifically need Loki protocol compatibility, for example during a gradual migration from Loki to Axiom.
Loki endpoint vs. Loki Multiplexer
The Axiom Loki endpoint (described on this page) and the Loki Multiplexer serve different purposes:- Loki endpoint: Receives data directly from Loki-compatible clients and agents. Use this when you want to send logs to Axiom only.
- Loki Multiplexer: Acts as a proxy that accepts Loki HTTP API traffic and forwards it to both Axiom and other destinations. Use this when you want to send the same logs to Axiom and another Loki-compatible backend simultaneously, for example during a migration period.