• English日本語한국어
  • 로그인지금 시작하기

Heroku cloud integration for log management

March 16, 2021

Detailed log data made easier than ever

  • Learn more

In our ongoing commitment to constantly innovate and build more integrations for the most common sources, we’re excited to announce we now provide built-in integration for Heroku.


Get started

  1. Download and install the Heroku CLI.

  2. Create a syslog drain that will send logs to New Relic and attach it to your app: heroku drains:add syslog+tls://newrelic.syslog.nr-data.net:6515 -a YOUR_APP_NAME

  3. Run the following to retrieve the drain token assigned to the drain created in step 2: $ heroku drains -a YOUR_APP_NAME --json

  4. Copy the value from the token attribute returned by the command above:

    "addon": null,
    "created_at": "2018-12-04T00:59:46Z",
    "id": "906262a4-e151-45d2-b35a-a2dc0ea9e688",
    "token": "d.f14da5dc-106b-468d-b1bd-bed0ed9fa1e7",
    "updated_at": "2018-12-04T00:59:47Z",
    "url": "syslog://logs.example.com"
  1. Launch Logs in one.newrelic.com, and click Add more data sources.


  1. Click on the Heroku tile, add your drain token, and select an Insights Insert API key to map it to.

  2. Click Add Heroku drain log and logs will begin flowing to your New Relic account within seconds.

Watch the Nerdlog Segment

Learn about sending logs from Heroku to New Relic One directly from our product managers and engineers.

You can get the scoop on the latest New Relic features from the people who built them, live at 12 p.m. PT (8 p.m. UTC) every Thursday on Twitch.

Copyright © 2024 New Relic Inc.

This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.