heroku-events
This module will mined heroku dyno related events out of a syslog file.
Get Started
To get started with this module you need to enable log sink on your heroku instance, this will send all the logs from your application to a syslog server, which will write this to a file.
To read the a syslog file and create a model representing the state of your application, while also consuming service related events.
var fs = var split = var LogParser = // model for dynos hostsvar model = {} var logParser = model logParser var st = fsst
The events which are currently fired are:
app-discovered
- Fired when a new log sink identifier is detected indicating a new app was discovered.app-change
- Fired when a heroku dyno state change is read.dyno-up
- Fired when an up heroku dyno state change is read.dyno-down
- Fired when a down heroku dyno state change is read.dyno-starting
- Fired when a starting heroku dyno state change is read.dyno-crashed
- Fired when a crashed heroku dyno state change is read.
Future Work
Need to:
- rewrite the two core parts to simplify and clean up how the parsing and events work.