Log Viewer
The HH Log Viewer is a feature in Vendor Hub designed to provide a secure and efficient interface for viewing, searching, and exporting application logs stored in OpenSearch. It features a dual-role system, providing tailored dashboards for both standard vendor users and super administrators.
Key Features
-
Role-Based Access Control:
- Vendor View: Users can view and filter logs associated only with their own vendor account.
- Admin View: Admins have a global view of all logs from all vendors, with advanced filtering capabilities.
-
Advanced Log Filtering: Search logs by keyword, reservation ID, date range, and log category.
-
User Management (Admin-only): Admins can create, edit, suspend, and delete user accounts.
-
Background Job Processing: Log exports are handled asynchronously using Sidekiq to prevent blocking web requests.
-
Email Notifications: Users receive an email with a secure link when their log export is ready for download.