log.info( "database has {} events in total and {} events with status=500", total, error500 );
ScriptRunner exec = new ScriptRunner( rubyScript, "ruby" );
ByteArrayOutputStream baos = new ByteArrayOutputStream();
exec.init( new TimePrintStream( baos), System.err );
exec.setAuditEventView( database );
exec.execute();
log.debug( "Output:\n{}", new String( baos.toByteArray() ) );