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 componentsReplace
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 send your data.Replace AXIOM_DOMAIN
with api.axiom.co
if your organization uses the US region, and with api.eu.axiom.co
if your organization uses the EU region. For more information, see Regions.Replace HEROKU_APPLICATION_NAME
with the name of the app that you created on the Heroku dashboard or the Heroku CLI.
Logging codes