login_events
Retrieve recent authentication events from Keycloak or Authentik, filter by event type and user. Returns normalized data with time, IP, client, error, and truncation status.
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 |