private void analyzeLog() {
    if (_successfulAzkabanJobPattern.matcher(_rawLog).find()) {
      succeededAzkabanJob();
    } else if (_failedAzkabanJobPattern.matcher(_rawLog).find()) {
      if (!_subEvents.isEmpty()) {
        mrLevelFailedAzkabanJob();
      } else if (_scriptFailPattern.matcher(_rawLog).find()) {
        scriptLevelFailedAzkabanJob();
      } else {
        azkabanLevelFailedAzkabanJob();
      }
    } else if (_killedAzkabanJobPattern.matcher(_rawLog).find()) {
      killedAzkabanJob();
    }
  }
Analyzes the log to find the level of exception
app/com/linkedin/drelephant/exceptions/azkaban/AzkabanJobLogAnalyzer.java