{"_id":"5888022ecd08ef2d00e32fae","parentDoc":null,"user":"5732062ad720220e008ea1d2","version":{"_id":"56ba46e2ce5d540d00e2d7aa","project":"56ba46e2ce5d540d00e2d7a7","__v":12,"createdAt":"2016-02-09T20:06:58.727Z","releaseDate":"2016-02-09T20:06:58.727Z","categories":["56ba46e3ce5d540d00e2d7ab","5771a6b145c7080e0072927f","5771a72eb0ea6b0e006a5221","5772e5b20a6d610e00dea073","577c3006b20f211700593629","57ae587bca3e310e00538155","57ae593a7c93fa0e001e6b50","57b1f8263ff6c519005cf074","582601f155b1060f00ec4173","582a62857a96051b0070b011","58ebfae58d5a860f00851fb9","590a75a1ec0d5e190095ab38"],"is_deprecated":false,"is_hidden":false,"is_beta":false,"is_stable":true,"codename":"","version_clean":"1.0.0","version":"1.0"},"project":"56ba46e2ce5d540d00e2d7a7","__v":0,"category":{"_id":"57ae593a7c93fa0e001e6b50","__v":0,"project":"56ba46e2ce5d540d00e2d7a7","version":"56ba46e2ce5d540d00e2d7aa","sync":{"url":"","isSync":false},"reference":false,"createdAt":"2016-08-12T23:18:18.323Z","from_sync":false,"order":4,"slug":"platforms","title":"Platforms"},"updates":[],"next":{"pages":[],"description":""},"createdAt":"2017-01-25T01:41:02.673Z","link_external":false,"link_url":"","githubsync":"","sync_unique":"","hidden":false,"api":{"results":{"codes":[]},"settings":"","auth":"required","params":[],"url":""},"isReference":false,"order":5,"body":"##Installation\n\n###Installing via Heroku Add-on\n\nThis is the recommended approach if your sources consist primarily of Heroku apps.\n\nThe LogDNA add-on is available through the [Heroku Elements Marketplace](https://elements.heroku.com/addons/logdna).\n\n###Installing via Heroku Log Drains\n\nYou can use this method if you have a mixed distribution of Heroku apps and non-Heroku sources.\n\nTo view your account-specific instructions, go to the [add log sources page](https://app.logdna.com/pages/add-host) and select Heroku.\n\nNote: Private Spaces must have logging enabled upon creation in order to use Private Space Logging. Additional details are available in the Heroku Docs.\n\n##FAQ\n**How do I use multiple Heroku apps with the LogDNA Heroku add-on?**\n\nIf you have more than 1 Heroku app using the LogDNA Heroku add-on:\n* The features from the most expensive LogDNA plan will apply to all of your apps.\n* 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.\n* The data for each LogDNA plan is part of a total pool available to all your apps.\n\n**Can I use the *Share this Heroku Add-On* option?**\n\nWe 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.\n\n**How can tell which dyno generated a particular log line?**\n\nIf you expand the [context](doc: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](https://docs.logdna.com/docs/search#section-field-search).\n```\ndyno:mydyno\n```","excerpt":"","slug":"heroku","type":"basic","title":"Heroku"}
##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](https://elements.heroku.com/addons/logdna). ###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](https://app.logdna.com/pages/add-host) 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](doc: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](https://docs.logdna.com/docs/search#section-field-search). ``` dyno:mydyno ```