private Stream<AuditActionContext> getAuditLog(final String interval, final long count) {
        if (StringUtils.isBlank(interval)) {
            val sinceDate = auditActionDateProvider.getObject().get()
                .minusDays(casProperties.getAudit().getEngine().getNumberOfDaysInHistory());
            return auditTrailManager.getObject().getAuditRecords(Map.of(
                AuditTrailManager.WhereClauseFields.DATE, sinceDate,
                AuditTrailManager.WhereClauseFields.COUNT, count
            )).parallelStream();
        }
        val duration = Beans.newDuration(interval);
        val startingDate = LocalDateTime.from(duration.subtractFrom(auditActionDateProvider.getObject().get()));
        LOGGER.debug("Fetching audit records since [{}]", startingDate);
        val initialRecords = auditTrailManager.getObject().getAuditRecords(Map.of(AuditTrailManager.WhereClauseFields.DATE, startingDate));
        LOGGER.debug("Filtering audit records that are after [{}]", startingDate);
        return initialRecords
            .parallelStream()
            .filter(rec -> rec.getWhenActionWasPerformed().isAfter(startingDate));
    }
Controller to handle the logging dashboard requests.

@author Misagh Moayyed
@since 4.2
support/cas-server-support-reports-core/src/main/java/org/apereo/cas/web/report/AuditLogEndpoint.java