       filename = f
     .parse(process.argv)
 
-  analyzeStartups filename, (err, res) ->
+  # FIXME: make configurable
+  started = (info) ->
+    return true if startsWith info, 'noflo-runtime-msgflo started' 
+    return true if info.indexOf('started using broker') != -1
+    return false
+
+  analyzeStartups filename, started, (err, res) ->
     throw err if err
     console.log res
 

    # FIXME: handle. Maybe outside/before. Particularly scale-to?


analyzeStartups = (filename, callback) ->
  fs = require 'fs'

  state = {}
  fs.readFile filename, {encoding: 'utf-8'}, (err, contents) ->
    return callback err if err
    events = eventsFromLog contents
    #results = events.map (e) -> "#{e.dyno or ''} #{e.type}"
    for e in events
      applyEvent state, e

  return str.indexOf(prefix) == 0


eventsFromLog = (logdata, started) ->
  events = []

  # timestamp, target (app|heroku), action
