URL url = IBAuditReaderTest.class
.getResource("/IB-95ebd277-b4c4-4951-97da-f9530205da39.log");
log.info("Reading test-event from {}", url);
IronBeeAuditReader reader = new IronBeeAuditReader(url.openStream());
IronBeeAuditEvent event = (IronBeeAuditEvent) reader.readNext();
log.info("Event = {}", event);
log.info(" TX_ID = {}", event.get(ModSecurity.TX_ID));
log.info("REQUEST_URI = {}", event.get(ModSecurity.REQUEST_URI));
log.info("RESPONSE_STATUS = {}",
event.get(ModSecurity.RESPONSE_STATUS));
log.info("REQUEST_HEADERS:Host = {}",
event.get(ModSecurity.REQUEST_HEADERS + ":HOST"));
log.info("--------------------------------------------------");
AuditEventMessage[] msgs = event.getEventMessages();
for (AuditEventMessage m : msgs) {
log.info("Message: {}", m);
}
// do {