A Cube emitter for Heroku logs.
First install Cube, along with Node.js and MongoDB, if you haven’t already. This process is described on the Cube wiki. I recommend cloning the Cube git repository so that you can easily customize the dashboard.
Then, install cube-logplex globally:
npm install -g cube-logplex
cd to the directory containing your heroku application, and start the log emitter by running
cube-logplex &. This uses
heroku logs -t internally, so you’ll need to have the Heroku toolbelt installed, too.
Currently the emitter assumes that you have the Cube collector running on localhost:1080. You can then access the Cube dashboard at localhost:1081. In the future, cube-logplex will support simple configuration and extension with custom emitters for app-specific events.
When the emitter is running, you should see your Heroku router info logs mapped to
heroku_info events in Cube. For example:
If you want to design a custom dashboard for your Heroku app, use the "random" example in Cube’s