Observability
Heroku Logging setup for SolarWinds Observability
This article provides a guide on how to send Heroku logs to Solarwinds Observability.
First published date
Last published date
Overview
You can send your Heroku logs by adding a drain to SolarWinds Observability
Product section
Resolution
- Once logged in to your Heroku Dashboard, navigate to your Heroku app that you want to register to SolarWinds Observability for log monitoring.
- Click More > Run console
- Type bash in the text box
- Click Run
- Add a drain: Use drain to send your Heroku application logs to SolarWinds Observability. Use the below command to send logs:
heroku drains:add "https://logs.collector.xx-yy.cloud.solarwinds.com/v1/logs/logplex/<SWO_API_TOKEN>?hostname=<heroku_app_name>" --app <heroku_app_name>Replace:
- SWO_API_TOKEN: Your actual SWO API token. The API Token that needs to be used should be Ingestion Token type. Refer to this documentation here on how to create a new API token or get your existing API token.
- HEROKU_APP_NAME: The name of your Heroku Application
xx-yy- It represents the data center your organization uses. See Data centers and endpoint URIs.
- Navigate to your SolarWinds Observability UI > Logs section to confirm that logs from the Heroku app are being ingested.