@Override
  public void log(Request request, Result result) {
    if(!auditLogger.isEnabled()) {
      return;
    }

    Resource.Type resourceType = request.getResource().getResourceDefinition().getType();
    Request.Type requestType = request.getRequestType();
    ResultStatus resultStatus = result.getStatus();

    RequestAuditEventCreator creator = selectCreator(resourceType, resultStatus, requestType);
    if (creator != null) {
      AuditEvent ae = creator.createAuditEvent(request, result);
      if (ae != null) {
        auditLogger.log(ae);
      }
    }
  }
Finds the proper creator, then creates and logs and {@link AuditEvent}
@param request
@param result
ambari-server/src/main/java/org/apache/ambari/server/audit/request/RequestAuditLoggerImpl.java