Raxol.Audit.Logger (Raxol v2.0.1)
View SourceCentralized audit logging system for compliance and security tracking.
This module provides a comprehensive audit trail for all security-relevant actions in the system. It integrates with the event sourcing infrastructure to ensure durability and supports various compliance frameworks.
Features
- Automatic event correlation and enrichment
- Configurable retention policies
- Real-time alerting for critical events
- Export capabilities for compliance reports
- Integration with external SIEM systems
- Tamper-proof event storage using cryptographic signatures
Summary
Functions
Returns a specification to start this module under a supervisor.
Logs a debug message.
Exports audit logs for compliance reporting.
Gets audit statistics.
Callback implementation for Raxol.Core.Behaviours.BaseManager.handle_manager_cast/2.
Logs an authentication attempt.
Logs an authorization decision.
Logs a compliance-related activity.
Logs a configuration change.
Logs a data access operation.
Logs a data privacy request (GDPR).
Logs a security event.
Logs a terminal operation.
Queries audit logs with filters.
Verifies the integrity of audit logs.
Types
@type config() :: %{ enabled: boolean(), log_level: :debug | :info | :warning | :error | :critical, buffer_size: pos_integer(), flush_interval_ms: pos_integer(), retention_days: pos_integer(), encrypt_events: boolean(), sign_events: boolean(), alert_on_critical: boolean(), export_enabled: boolean(), siem_integration: map() | nil }
Functions
Returns a specification to start this module under a supervisor.
See Supervisor.
Logs a debug message.
Exports audit logs for compliance reporting.
Gets audit statistics.
Callback implementation for Raxol.Core.Behaviours.BaseManager.handle_manager_cast/2.
Logs an authentication attempt.
Logs an authorization decision.
Logs a compliance-related activity.
Logs a configuration change.
Logs a data access operation.
Logs a data privacy request (GDPR).
Logs a security event.
Logs a terminal operation.
Queries audit logs with filters.
Verifies the integrity of audit logs.