login_events
Retrieves recent authentication events with filters for event type and user. Enables investigation of login failures and audit of sign-in activity across Keycloak and Authentik.
Instructions
[READ] Recent authentication events, normalized (time/type/user/ip/client/error).
Args: event_type: Platform vocabulary — Keycloak LOGIN / LOGIN_ERROR, authentik login / login_failed (case-insensitive). user: Optional username / user-id filter. max_results: Page bound (default 200, max 500). target: IdP target name from config; omit for the default.
Returns {"events": [...], "returned": N, "limit": L, "truncated": bool}. truncated is measured (one extra event is fetched), not guessed — when it is true, more events exist; re-run with a higher max_results rather than treating the partial feed as the whole picture. Optional fields an event did not carry are null, never "".
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| user | No | ||
| target | No | ||
| event_type | No | ||
| max_results | No |