This project and the log2viz.herokuapp.com
service are no longer actively maintained by Heroku.
Realtime analysis of your Heroku app logs.
- Heroku Toolbelt (https://toolbelt.heroku.com/)
- Ruby 1.9.3
- bundler
Clone the repository and install the required gems.
$ git clone git@github.com:heroku/log2viz.git
$ cd log2viz
$ bundle install
$ cp .env.sample .env
log2viz
uses OAuth to obtain authorization to fetch your application’s logs using the Heroku API. To make this work, you have to register an OAuth client with Heroku. The easiest way to do this is on your account page on the Heroku Dashboard. Enter http://localhost:5000/auth/heroku/callback
when prompted for a callback URL. The OAuth developer doc has additional details on client creation and OAuth in general.
When registering the client you get an OAuth client id and secret. Add these as HEROKU_ID
and HEROKU_SECRET
environment variables to your application’s .env
.
$ foreman start
And you’re done! Your app will be running at http://localhost:5000
$ heroku create -a myviz
Register a new OAuth client as described above, this time using the URL of your publicly running app for the callback, i.e. https://myviz.herokuapp.com/auth/heroku/callback
.
And set the appropriate variables on your Heroku app:
$ heroku config:set HEROKU_ID=xxxxxxxx \
HEROKU_SECRET=xxxxxx
$ git push heroku master
Visit your app at https://myviz.herokuapp.com
Released under the MIT license.