Heroku Logs

Heroku logging setup instructions. Learn how to install via Heroku log drains to ingest, parse, collect, centralize, and analyze Heroku logs with LogDNA.

Installation

Installing via Heroku Add-on

This is the recommended approach if your sources consist primarily of Heroku apps.

The LogDNA add-on is available through the Heroku Elements Marketplace.

Installing via Heroku Log Drains

You can use this method if you have a mixed distribution of Heroku apps and non-Heroku sources.

To view your account-specific instructions, go to the add log sources page and select Heroku.

Note: Private Spaces must have logging enabled upon creation in order to use Private Space Logging. Additional details are available in the Heroku Docs.

FAQ

How do I use multiple Heroku apps with the LogDNA Heroku add-on?

If you have more than 1 Heroku app using the LogDNA Heroku add-on:

  • The features from the most expensive LogDNA plan will apply to all of your apps.
  • The data for each LogDNA plan is additive, so if you have a plan with 10 MB and another with 20 MB, your total volume would be 30 MB.
  • The data for each LogDNA plan is part of a total pool available to all your apps.

Can I use the Share this Heroku Add-On option?

We do not recommend that you do so. Enabling this option will cause all of your logs to be grouped under the Heroku app the you originally installed the add-on for. This makes it difficult and confusing to distinguish which log lines came from which Heroku app. Instead, we strongly recommend that you install the add-on for each Heroku app you wish to send logs to LogDNA.

How can tell which dyno generated a particular log line?

If you expand the context for a log line generated by a Heroku dyno, you can see the dyno information listed there. You can even filter by dyno using a dyno field search.

dyno:mydyno

Heroku Logs

Heroku logging setup instructions. Learn how to install via Heroku log drains to ingest, parse, collect, centralize, and analyze Heroku logs with LogDNA.