     if req.body.payload
       data = JSON.parse req.body.payload
       alert = data.alert.name
+      name = data.log.name
 
       robot.logger.info "Alert POSTed from LogEntries: #{alert}"
 

#
#  Example broadcast for an Exit timeout alert:
#
#    "Logentries (Production Alert): Exit timeout"
#
# Dependencies:
#   None

        user.room = process.env.LOGENTRIES_ROOM
      user.type = 'groupchat'

      robot.send user, "[#{name} Logs]: #{alert}"

      res.writeHead 200, {'Content-Type': 'text/plain'}
      res.end 'Thanks\n'
