Send data from Heroku Log Drains to Axiom
This step-by-step guide will help you forward logs from your apps, and deployments to Axiom by sending them via HTTPS.
Log Drains make it easy to collect logs from your deployments and forward them to archival, search, and alerting services by sending them via HTTPS, HTTP, TLS, and TCP.
Heroku Log Drains
With Heroku log drains you can forward logs from your apps, and deployments to Axiom by sending them via HTTPS.
Prerequisites
Create and sign in to your Axiom Account.
Installation
Sign up and login to your account on Heroku, and download the Heroku CLI
Configuration
Heroku log drains configuration consists of three main components
Where:
- API_TOKEN: is used to send data to your dataset. API token can be generated from settings on Axiom dashboard.
See creating an API token for more
- DATASET_NAME: name of your dataset. When logs are sent from your Heroku app it’s stored in a dataset on Axiom.
Dataset can be created from the settings page on Axiom.
See creating a dataset for more
- HEROKU_APPLICATION_NAME: is the name of your app created on the Heroku dashboard or on the Heroku CLI.
See creating an Heroku app for more
Back in your dataset you see your Heroku logs.
Logging codes