Observability

Heroku Logging setup for SolarWinds Observability

This article provides a guide on how to send Heroku logs to Solarwinds Observability.

First published date

11/6/2024 1:28 PM

Last published date

5/28/2025 9:55 PM

Overview

You can send your Heroku logs by adding a drain to SolarWinds Observability

Product section

SolarWinds Observability

Resolution

  1. Once logged in to your Heroku Dashboard, navigate to your Heroku app that you want to register to SolarWinds Observability for log monitoring.
  2. Click More > Run console  
    Heroku screenshot.png 
  3. Type bash in the text box
  4. Click RunHeroku screenshot 2.png 
  5. 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.  
  6. Navigate to your SolarWinds Observability UI > Logs section to confirm that logs from the Heroku app are being ingested.