plain-lunch-50969
08/14/2025, 4:47 PMbrief-egg-61061
08/14/2025, 4:47 PMbrief-egg-61061
08/14/2025, 4:48 PMtime=2020-05-20T11:57:29+02:00 level=info msg=Login successful. audience=audit service_name=foo service_version=bar
What to do: - Ensure your Ory Kratos deployment is configured to write logs to a location you control. - Collect and store these logs securely for your desired retention period. - Use the Ory Console for a UI-based overview of login activity if you are using Ory Network. If you need to programmatically access session or login information, you can also query the /sessions/whoami
endpoint to retrieve session details, including the identity and authentication method used [Session Checks](https://www.ory.sh/docs/kratos/bring-your-own-ui/custom-ui-basic-integration#session-checks). If you require more advanced integrations (e.g., sending login events to external systems), Ory Actions can be configured to trigger custom logic after login events [Configure Hooks and Actions](https://www.ory.sh/docs/kratos/hooks/configure-hooks). Summary: - Use Ory's audit logs for tracking logins. - Access logs via your logging backend or the Ory Console. - Optionally, use Ory Actions for custom integrations or automation.plain-lunch-50969
08/14/2025, 4:50 PMbrief-egg-61061
08/14/2025, 4:50 PMbrief-egg-61061
08/14/2025, 4:50 PM