Send Loki logs to Axiom
Loki by Prometheus is a multi-tenant log aggregation system that is highly scalable and capable of indexing metadata about your logs.
Loki exposes an HTTP API for pushing, querying, and tailing Axiom log data.
Axiom Loki Proxy provides a gateway for you to connect a direct link interface to Axiom via Loki endpoint.
Using the Axiom-Loki-Proxy, you can ship logs to Axiom via the Loki HTTP API.
Installation
Install & Update using Homebrew
brew tap axiomhq/tap
brew install axiom-loki-proxy
brew update
brew upgrade axiom-loki-proxyInstall using go get
go get -u github.com/axiomhq/axiom-loki-proxy/cmd/axiom-loki-proxyInstall from source
git clone https://github.com/axiomhq/axiom-loki-proxy.git
cd axiom-loki-proxy
make buildRun the Loki-Proxy Docker image
docker pull axiomhq/axiom-loki-proxy:latestConfiguration
- Specify the environmental variables for your Axiom deployment
When using Axiom self-host:
AXIOM_URL: URL of the Axiom deployment to use.
AXIOM_TOKEN: Personal Access or API token. Your personal access or API token can be created under Profile or Settings > API Tokens.
For security reasons it is advised to use an API Token with minimal privileges only.
Run & Test it:
./axiom-loki-proxyUsing Docker
docker run -p8080:8080/tcp \
-e=AXIOM_TOKEN=<YOU_AXIOM_TOKEN> \
axiomhq/axiom-loki-proxyFor more information on Axiom-loki-proxy and how you can propose bug fix, report issues and submit PRs, kindly visit our repository on Github.