@Override
    public Stream<? extends CasEvent> getEventsOfTypeForPrincipal(final String type, final String principal) {
        return getEventsForPrincipal(principal)
            .filter(event -> event.getType().equals(type));
    }
Field name to track principal linked to the event.
core/cas-server-core-events-api/src/main/java/org/apereo/cas/support/events/dao/AbstractCasEventRepository.java