Action guides

What to log in your SaaS

A field guide to the events every SaaS ends up logging: auth, billing, admin actions, data requests. One page per action with a concrete payload and a retention hint.

Authentication

user.signup
Log account creation

Emit a `user.signup` event when a new account is created. Store the source, referrer and any campaign metadata so you can trace paying customers back to the campaign that brought them in.

user.login
Log user logins

Emit a `user.login` event on every successful sign-in. Stores actor, IP, user agent and any MFA method used. Feeds your security dashboards, user timelines and enterprise audit exports.

user.login.failed
Log failed login attempts

Emit a `user.login.failed` event on every failed sign-in, whether the email exists or not. IP and outcome let you aggregate across a time window and spot distributed attacks before they convert.

user.password.changed
Log password changes

Emit a `user.password.changed` event every time a user updates their own password, and distinguish it from `user.password.reset` (triggered from the forgot-password flow).

user.password.reset
Log password resets

Emit a `user.password.reset` event when a user completes the forgot-password flow and a new password is set via an email token. Distinct from a normal password change.

user.mfa.enabled
Log MFA activation

Emit a `user.mfa.enabled` event the first time a user successfully verifies a second factor, TOTP, WebAuthn, SMS. Enterprise contracts often require MFA adoption reporting.

user.session.revoked
Log session revocations

Emit a `user.session.revoked` event when you terminate a session, whether the user clicked 'sign out everywhere', or your back end killed it due to suspicious activity, or an admin revoked it.

Billing

Admin & compliance

Content & storage

AI agents