private static void emitAudit(AuditLogger auditLogger, AuditMessage auditMsg) { auditMsg.getAuditSourceIdentification().add(auditLogger.createAuditSourceIdentification()); try { AuditLogger.SendStatus write = auditLogger.write(auditLogger.timeStamp(), auditMsg); System.out.println("log send status: " + write); } catch (Exception e) { LOG.warn("Failed to emit audit message", e); } }
private static void emitAudit(AuditLogger auditLogger, AuditMessage auditMsg) { auditMsg.getAuditSourceIdentification().add(auditLogger.createAuditSourceIdentification()); try { AuditLogger.SendStatus write = auditLogger.write(auditLogger.timeStamp(), auditMsg); System.out.println("log send status: " + write); } catch (Exception e) { LOG.warn("Failed to emit audit message", e); } }
private static void emitAudit( AuditLogger log, EventIdentificationBuilder eventID, ActiveParticipantBuilder[] activeParticipants) { AuditMessage msg = AuditMessages.createMessage(eventID, activeParticipants); msg.getAuditSourceIdentification().add(log.createAuditSourceIdentification()); try { AuditLogger.SendStatus write = log.write(log.timeStamp(), msg); System.out.println("log send status: " + write); } catch (Exception e) { LOG.warn("Failed to emit audit message", e); } }
private static void emitAudit( AuditLogger log, EventIdentificationBuilder eventID, ActiveParticipantBuilder[] activeParticipants) { AuditMessage msg = AuditMessages.createMessage(eventID, activeParticipants); msg.getAuditSourceIdentification().add(log.createAuditSourceIdentification()); try { AuditLogger.SendStatus write = log.write(log.timeStamp(), msg); System.out.println("log send status: " + write); } catch (Exception e) { LOG.warn("Failed to emit audit message", e); } }
public void sendFiles(List<String> pathnames) throws Exception { int count = 0; for (String pathname : pathnames) { if (count++ > 0 && delayBetweenMessages > 0) Thread.sleep(delayBetweenMessages); byte[] b = readFile(pathname); auditLogger.write(auditLogger.timeStamp(), auditLogger.getSuccessSeverity(), b, 0, b.length); } }
public void sendFiles(List<String> pathnames) throws Exception { int count = 0; for (String pathname : pathnames) { if (count++ > 0 && delayBetweenMessages > 0) Thread.sleep(delayBetweenMessages); byte[] b = readFile(pathname); auditLogger.write(auditLogger.timeStamp(), auditLogger.getSuccessSeverity(), b, 0, b.length); } }
private static EventIdentificationBuilder eventIDBuilder( AuditLogger log, String outcome, AuditUtils.AuditEventType eventType) { return new EventIdentificationBuilder.Builder( eventType.eventID, AuditMessages.EventActionCode.Execute, log.timeStamp(), eventOutcomeIndicator(outcome)) .outcomeDesc(outcome) .eventTypeCode(eventType.eventTypeCode) .build(); }
private static EventIdentificationBuilder eventIDBuilder( AuditLogger log, String outcome, AuditUtils.AuditEventType eventType) { return new EventIdentificationBuilder.Builder( eventType.eventID, eventType.eventActionCode, log.timeStamp(), eventOutcomeIndicator(outcome)) .outcomeDesc(outcome) .eventTypeCode(eventType.eventTypeCode).build(); }
eventType.eventID, eventType.eventActionCode, auditLogger.timeStamp(), AuditMessages.EventOutcomeIndicator.Success) .outcomeDesc(info.getField(AuthInfo.RESOURCE_TYPE))
eventType.eventID, AuditMessages.EventActionCode.Execute, auditLogger.timeStamp(), eventOutcomeIndicator(adminEvent.getError())) .outcomeDesc(info.getField(AuthInfo.EVENT))