Availability
| Component | Version | Editions |
|---|---|---|
| Tyk Dashboard | Available since v5.7.0 | Enterprise |
Prerequisites
- Dashboard License: Contact our team to obtain a license or get a self-managed trial license by completing the registration on our website.
- Working Tyk Environment: You need access to a running Tyk instance. For quick setup instructions using Docker, please refer to the Tyk Getting Started Guide.
- Admin Access: You need admin permissions to configure audit logging and access audit log data.
What We Will Do
In this guide, we will:- Enable audit logs in Tyk Dashboard using the database storage option
- View the audit logs through the Dashboard UI
- Learn how to access audit logs via the API
This guide is focused on self-managed / on-premise installations. For Tyk Cloud deployments, refer to the Tyk Cloud Audit Logs guide.
Instructions
1. Configure Audit Logging with Database Storage
To enable audit logging with database storage, you need to update your Tyk Dashboard configuration. Database storage is recommended as it enables viewing logs directly in the Dashboard UI.- Configuration File
- Environment Variables
Add the following
audit section to your tyk_analytics.conf file:2. Restart Tyk Dashboard
After updating the configuration, restart your Tyk Dashboard service for the changes to take effect:3. View Audit Logs in Dashboard UI
Once audit logging is enabled with database storage, you can view logs directly in the Dashboard:- Log in to your Tyk Dashboard
- Interact with the system (e.g., create/update APIs, users, policies) to generate audit log entries
- Go to System Management > Audit Logs to see the recorded logs
-
Use the available filters to search and filter logs:
- Date range: Filter logs by time period
- User: Filter by the user who performed the action
- IP address: Filter by the originating IP address
- HTTP method: Filter by http method

5. Access Audit Logs via API
You can also retrieve audit logs programmatically using the Dashboard API:Troubleshooting
Permission Denied When Accessing Audit Logs
Permission Denied When Accessing Audit Logs
Users need the appropriate RBAC permissions to view audit logs.
Via Dashboard UI
- Navigate to Users in your Tyk Dashboard
- Select the user you want to grant access
- In the Permissions section, enable Audit Logs with
readaccess - Save the user
Via Dashboard API
Includeaudit_logs in the user’s permissions object when creating or updating a user:Only
read access is available for audit logs. Write or delete operations are not permitted to maintain audit integrity.Audit Logs Not Appearing
Audit Logs Not Appearing
- Verify configuration: Ensure
audit.enabledis set totruein your configuration - Check storage type: Confirm
audit.store_typeis set todbfor UI access - Restart Dashboard: Configuration changes require a restart to take effect
- Check version: Database storage requires Tyk Dashboard v5.7.0 or later