Skip to Content
ModulesAuthenticationAudit Event

Audit Event

Auditing is critical for monitoring user and system activity, supporting compliance, detecting suspicious behavior, and enabling forensic investigations. The following sections describe the types of authentication, password management, and system events that should be logged for robust security and operational transparency.

Authentication Events

Event TypeDescriptionAudit LevelData Captured
LOGIN_SUCCESSSuccessful user loginINFOUser ID, IP, timestamp, user agent
LOGIN_FAILUREFailed login attemptWARNUsername, IP, failure reason, timestamp
LOGOUTUser logoutINFOUser ID, session duration, IP
TOKEN_REFRESHJWT token refreshINFOUser ID, old token ID, new token ID
ACCOUNT_LOCKEDAccount locked due to failuresERRORUser ID, lock reason, unlock time

Password Management Events

Event TypeDescriptionAudit LevelData Captured
PASSWORD_RESET_REQUESTPassword reset initiatedINFOUser ID, IP, delivery method
PASSWORD_RESET_SUCCESSPassword successfully resetINFOUser ID, IP, reset method
PASSWORD_RESET_FAILUREFailed password reset attemptWARNToken, IP, failure reason
PASSWORD_CHANGEPassword changed by userINFOUser ID, IP, timestamp

System Events

Event TypeDescriptionAudit LevelData Captured
RATE_LIMIT_EXCEEDEDRate limit violationWARNIP, endpoint, violation count
SECURITY_VIOLATIONSecurity policy violationERRORUser ID, violation type, details
CONFIGURATION_CHANGESystem configuration modifiedINFOAdmin ID, property changed, old/new values
Last updated on