Many server owners notice that the audit log only shows entries from the last 90 days, even after upgrading to Discord Nitro or boosting the server. This limitation is not a bug or a permission error. The 90-day retention period is a hard cap set by Discord for all server audit logs, regardless of premium status. This article explains the technical reason behind this limit, what premium features actually affect audit logs, and how to work around the 90-day restriction.
Key Takeaways: Discord Audit Log Retention Limits
- Server Settings > Audit Log: All servers, including boosted ones, retain audit log entries for 90 days maximum.
- Server Boost Level 2 or 3: These tiers provide a 90-day retention period, not longer. The base limit is 90 days.
- Audit Log Export (via API): Only available to bot developers; no built-in export tool exists in the client.
Why Discord Caps Audit Log Retention at 90 Days
Discord stores audit log data on its servers for every action taken by members and bots. The audit log includes events like message deletions, channel creations, role changes, and permission edits. Storing this data indefinitely would require massive storage infrastructure and increase database costs. Discord decided to set a uniform retention period of 90 days for all servers, regardless of their premium status.
The 90-day limit applies even to servers with Nitro boosts at Level 2 or Level 3. These boost levels increase the maximum file upload size, enable animated server icons, and unlock custom stickers. They do not extend audit log retention. This is a common misconception among server owners who expect premium features to affect all server settings.
Discord has never publicly stated that premium status changes audit log retention. The 90-day period is a server-wide setting that cannot be modified by any subscription or boost tier. The only way to keep audit log data beyond 90 days is to export it manually or through a bot before the entries expire.
Steps to Export Audit Log Data Before It Disappears
Since Discord does not provide a built-in export tool for audit logs, you need to use a bot or the Discord API to save the data. Below are two methods to export audit logs before the 90-day window closes.
Method 1: Using a Bot Like ServerStats or Audit Log Bot
- Invite a bot that supports audit log export
Search for bots like ServerStats, Audit Log Bot, or Dyno on a bot listing site such as top.gg. Click the Invite button and select your server from the dropdown menu. Grant the bot the necessary permissions: View Audit Log, Send Messages, and Manage Server. - Configure the bot to log audit events
After the bot joins your server, type a command like/auditlog setupor/log setin a text channel. The bot will ask you to choose a channel where it will post audit log entries. Some bots allow you to filter specific events, such as message deletions or role changes. - Enable continuous logging
Most audit log bots run continuously once configured. They record each audit event in real time and store it in a database on their own servers. This method preserves entries beyond 90 days because the bot stores the data externally, not inside Discord. - Export the logged data
After the bot has collected entries for a period, use a command like/auditlog exportto download the data as a CSV or JSON file. Some bots offer automatic daily or weekly exports to a Google Drive or Dropbox folder.
Method 2: Using Discord API with a Custom Script
- Create a Discord application and bot token
Go to the Discord Developer Portal, click New Application, give it a name, and navigate to the Bot section. Click Add Bot and copy the token. Keep this token private. - Write a script to fetch audit logs
Use a programming language like Python with the discord.py library. The script should call theguild.audit_logs()method and iterate through the entries. Set a loop to run daily or weekly to fetch new entries before the 90-day cutoff. - Store the data in a local file or database
Within the script, save each audit log entry to a CSV file, a SQLite database, or a cloud storage service. Include the timestamp, user, action type, and target ID. Schedule the script using a cron job or Task Scheduler to run automatically. - Test the script on a small server first
Run the script on a test server with a few members to verify that it captures all audit events correctly. Check that the exported file contains the expected columns and no missing entries.
If You Cannot Access Old Audit Logs
Audit Log Entries Older Than 90 Days Are Permanently Deleted
Once an audit log entry passes the 90-day mark, Discord removes it from its servers. There is no way to recover these entries through any setting, support ticket, or premium plan. The only option is to have set up a logging bot before the 90-day window expired.
Server Boost Does Not Extend Audit Log Retention
Some server owners mistakenly believe that reaching Boost Level 2 or Level 3 will increase the audit log retention period. This is false. Boost levels affect server features like upload limits, animated banner, and custom sticker slots. Audit log retention remains at 90 days regardless of boost tier.
Audit Log Is Not the Same as Message History
The audit log records administrative actions, not message content. If you need to view old messages, the 90-day limit applies to audit logs only. Message history in text channels is retained indefinitely unless manually deleted by a moderator or bot.
Discord Audit Log Retention: Free vs Premium Servers
| Item | Free Server | Boosted Server (Level 2 or 3) |
|---|---|---|
| Audit log retention period | 90 days | 90 days |
| Maximum file upload size | 25 MB | 100 MB (Level 2) or 200 MB (Level 3) |
| Animated server icon | Not available | Available at Level 1 or higher |
| Custom sticker slots | 0 | 15 (Level 2) or 30 (Level 3) |
| Audit log export tool | Not built-in | Not built-in |
The 90-day audit log retention applies to all servers equally. Premium tiers do not change this limit. To preserve audit log data, use a bot or API script to export entries before they expire.
Now you understand that Discord audit log retention is capped at 90 days for every server, regardless of Nitro or boost status. The only way to keep a permanent record of audit events is to set up a logging bot that stores data externally. For servers that require long-term compliance or moderation tracking, consider using a bot that supports automatic daily exports. This approach ensures you never lose access to important administrative actions.