All Projects → heroku → Log2viz

heroku / Log2viz

DEFUNCT: Realtime analysis of your Heroku app logs.

Programming Languages

ruby
36898 projects - #4 most used programming language

DEFUNCT: log2viz

This project and the log2viz.herokuapp.com service are no longer actively maintained by Heroku.

http://log2viz.herokuapp.com/

Realtime analysis of your Heroku app logs.

Installing Locally

Requirements

Get the code

Clone the repository and install the required gems.

$ git clone [email protected]:heroku/log2viz.git
$ cd log2viz
$ bundle install
$ cp .env.sample .env

Set up OAuth

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.

Start the server

$ foreman start

And you’re done! Your app will be running at http://localhost:5000

Running on Heroku

Create an application

$ heroku create -a myviz

Create a new OAuth client

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 

Deploy

$ git push heroku master

Visit your app at https://myviz.herokuapp.com

Meta

Released under the MIT license.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].