Send data from Loki to Axiom
Integrate Axiom in your existing Loki stack with minimal effort and without breaking any of your existing Loki workflows.
This page explains how to send data from a Loki-based logging setup to Axiom.
Axiom doesn’t accept the Loki push API directly. Instead, replace the component that pushes to Loki with one that sends to Axiom natively. In most setups, this is a one-line change in a log shipper’s configuration.
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.
Replace the Loki output in your log shipper
Most Loki pipelines run a shipper that also has native support for Axiom. Replace the Loki output in the shipper configuration with the Axiom output, and keep the sources and transforms as they are:
If you use Promtail or Grafana Alloy only to ship logs to Loki, replace it with one of the shippers above.
Replace the Loki transport in your app
If your app logs through a Loki transport such as winston-loki or logging_loki, switch to the Axiom integration for your logging library:
- Node.js: Winston or Pino
- Python: Python logging
For other languages and frameworks, see Methods for sending data.