Audit logs
Audit logs in RayDB provide visibility into user activities, system events, and security-related actions across your PostgreSQL clusters. These logs help in monitoring access, ensuring compliance, and troubleshooting issues.
What is Logged?
RayDB captures the following types of audit events:
- Authentication Events: User logins, failed login attempts, and password changes.
- Team Management Events: Invitations, role changes, and member removals.
- Cluster Operations: Creation, deletion, and scaling of clusters.
- Security & Access: Firewall rule changes and authentication updates.
- Database Actions: Backups, restores, and replication events.
Viewing Audit Logs
- Log in to the RayDB Dashboard.
- Navigate to the Audit Logs section.
- Use filters to search by date, event type, or user.
- Click on an entry to view detailed information.
Retention Policy
- Logs are stored for a default retention period (e.g., 30 days) depending on the subscription plan.
- Extended retention can be configured for enterprise users.
Exporting Logs
To analyze logs externally, you can download them as a CSV or JSON file:
- Open the Audit Logs section in the dashboard.
- Select the desired timeframe and filters.
- Click Export Logs and choose the format.
Best Practices
- Regularly Review Logs: Monitor for unusual activity or unauthorized access.
- Enable Alerts: Set up notifications for critical security events.
- Store Long-Term Logs: If needed for compliance, regularly export logs before they expire.
For further security measures, see User Authentication and Roles.