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 an Axiom account.
- Create a dataset in Axiom where you send your data.
- Create an API token in Axiom with permissions to update the dataset you have created.
Installation
Sign up and login to your account on Heroku, and download the Heroku CLIConfiguration
Heroku log drains configuration consists of three main components- Replace
API_TOKEN
with the Axiom API token you have generated. For added security, store the API token in an environment variable. - Replace
DATASET_NAME
with the name of the Axiom dataset where you want to send data.
- Replace
HEROKU_APPLICATION_NAME
with the name of the app that you created on the Heroku dashboard or the Heroku CLI.

Logging codes