Contents
- What the audit log records
- Who can see the audit log
- 1. Open the audit log
- 2. Filter by user and action
- 3. Read bot actions correctly
- The limits of the audit log
- 4. Set up lasting logs with Lizbot
- 5. What Lizbot records on top of the audit log
- 6. The audit log in the Lizbot dashboard
- An incident from start to finish
- Checklist
- Common mistakes
- FAQ
A channel is suddenly gone, a role has admin permissions out of nowhere, or a member complains about a kick that nobody on the team knows about. In moments like these you don't want to guess, you want to check. That is exactly what the Discord audit log is for: it records who carried out which administrative action on the server.
In this guide you learn where the audit log is, who can see it, how to find an incident in a few clicks and what the audit log cannot do. Then you add log channels with Lizbot that last longer, plus a separate record of everything that happens in the dashboard.
What the audit log records
The audit log is a chronological list of administrative actions. Each entry shows who did something, what it was, whom or what it affected and when. Typical entries are:
- Members: kicks, bans, unbans, timeouts, changed nicknames and roles given or removed
- Channels: created, renamed, deleted, permissions changed
- Roles: created, deleted, name, colour or permissions changed
- Server: changed server settings, invites, webhooks, emojis, added bots and integrations
- Messages: deleted and pinned messages, with the limitations described further down
The perspective matters: the audit log records administration, not conversation. What members write, edit or delete themselves does not appear there.
Who can see the audit log
To view it, a role needs the View Audit Log permission. Anyone with Administrator sees it anyway, and so does the server owner. What the other permissions do is explained in the guide Discord permissions explained.
Give this permission to your moderation team, but no wider. The audit log shows who punished whom and when, and the reasons sometimes contain details that are not meant for every member. You don't need a separate role just for this permission, it fits the moderator role. How to split your team's roles sensibly is covered in the guide Build a Discord moderation team.
Bots need this permission too if they are supposed to find out who triggered an action. More on that shortly.
1. Open the audit log
On a computer, click the server name at the top left and then Server Settings. In the list on the left you find the Audit Log entry. If it is missing, none of your roles has the View Audit Log permission.
The newest entries are at the top. You can expand an entry to see the details, for example the old and new name of a channel or which permissions were added to or removed from a role. If someone gave a reason for an action, it also appears in the expanded entry.
2. Filter by user and action
On an active server the list gets long quickly. Above the list there are two filters: one for the user who carried out the action and one for the type of action. You can combine both.
This is how you approach typical questions:
- "Who deleted #announcements?" Filter by the action for deleted channels. The entry names the channel and the account.
- "Why doesn't Lena have the mod role any more?" Filter by member role updates and look for Lena as the target. The entry shows who removed the role.
- "What did a certain moderator do yesterday?" Filter by that user, without an action filter. You get all their administrative actions in chronological order.
- "Who suddenly allowed @everyone to mention everyone?" Filter by role updates and expand the entries for the @everyone role.
There is no filter by target, meaning the affected member. If you want to know what happened to a specific member, filter by the action and look for the name in the list.
3. Read bot actions correctly
Many actions on a server are carried out by bots. The audit log then shows the bot as the one who acted, not the person who typed the command. That is why the reason in the entry is what counts.
For every punishment via /ban, /mod softban, /kick, /timeout, /mod untimeout and /mod unban, Lizbot writes the moderator and the reason into the audit log reason, in the format "moderator's username: reason". This also applies to punishments your team hands out in the dashboard. For /channel lock and /channel unlock, it also notes who ran the command. That way you see right in Discord who is behind a Lizbot action.
To make sure a meaningful reason appears there, you can switch on Reason required in the dashboard under Moderation on the General tab. Mods then have to give a reason for every punishment. Later, that helps you more than any filter.
If the audit log shows a newly created webhook that nobody on the team recognizes, act quickly. What to do next is described in the guide Discord webhook abused.
The limits of the audit log
The audit log is useful, but it has gaps you should know about before you rely on it in an emergency.
Entries disappear after 45 days. Discord keeps each entry for 45 days, then it is gone. A dispute about a ban from three months ago cannot be settled with the audit log alone.
No message content. If a moderator deletes a message, the audit log only shows that they deleted a message from a certain member in a channel. What it said is not there. Several deletions in quick succession are merged into one entry with a count.
Self-deletions are missing entirely. If a member deletes their own message, it does not show up in the audit log at all. Someone who writes something offensive and deletes it seconds later leaves no trace there. Which options you still have to recover deleted content is covered in the guide how to see deleted Discord messages.
Edited messages, joins and voice are missing. Who edits a message afterwards, who joins or leaves the server and who enters which voice channel are not administrative actions.
No export, no notifications. The audit log is a list you have to open yourself. It does not alert you when something unusual is happening.
4. Set up lasting logs with Lizbot
A logging bot closes these gaps. Lizbot posts events to log channels of your choice. These messages stay in Discord until you delete them, regardless of the 45-day limit. All log events are included in the Free plan. You can find an overview of the module on the Logging page. Which events are worth logging on which server is described in the guide setting up Discord logs.
This is how you set it up:
- Open your server in the dashboard and go to the Logging module.
- Switch on Logging enabled. The module is off at first.
- Under Layout, choose how events are split: All in one channel, Per area or Per event.
- Click Create channels under Create log channels automatically. Lizbot creates a private "Logs" category that only admin and mod roles can see and where only Lizbot can post. Existing log channels are reused.
- Under Events, switch off what you don't need.
- Under Ignored channels and Ignored roles, add what should not be logged, such as bot playgrounds or team channels. For ignored channels, message events from those channels are skipped.
- Save and test: delete a test message of your own in a normal channel and check whether the entry appears in the log channel.
If you don't want to pick every event yourself, use Load template at the top of the page. Minimal only logs joins, leaves, kicks, bans, timeouts and deleted messages. Moderation covers everything except voice. Everything switches on every event, including voice.
Which layout suits you?
- All in one channel: for small servers with little activity. One glance is enough.
- Per area: the best choice for most servers. Moderation, messages, members, server with roles and channels, voice and applications each go to their own channel. Anyone checking moderation doesn't have to scroll past voice joins.
- Per event: for large servers where a single area is already too much. Here a Fallback channel is worth it: it catches events without their own channel and also steps in when a log channel has been deleted.
5. What Lizbot records on top of the audit log
The log channels cover exactly the gaps described above:
- Deleted messages with content: Lizbot posts the author, channel and text of the message, and the file names for attachments. This also applies when someone deletes their own message. If a moderator deleted it, the entry also shows who it was.
- Edited messages and bulk deletes
- Joins and leaves, role and nickname changes
- Kicks and timeouts with moderator and reason, bans and unbans
- Channel and role changes with name, topic, colour and permissions, plus created and deleted channels and roles
- New invites as well as joined, left and switched voice
For Lizbot to name who was responsible for deleted messages, kicks, bans or role changes, its role needs the View Audit Log permission, because Lizbot reads this information from the Discord audit log itself. For kicks, the permission is even a requirement: Discord reports a kick to bots only as a leave, and only the audit log entry reveals that it was a kick. How to give a bot a missing permission is shown in the guide fixing missing bot permissions.
Two limits remain: Lizbot can only log what happens while it is on the server and logging is running. And for older messages that are no longer in Lizbot's cache, the content is missing on deletion and the old text is missing on edits. Lizbot does not log deleted or edited messages from bots.
6. The audit log in the Lizbot dashboard
In addition, Lizbot keeps its own Audit log of everything changed through Lizbot. You find it in the dashboard sidebar under Analyze. It shows each entry with Time, Action, By, Target and Source. The source tells you whether the change came from the Dashboard, the App, a command in Discord, the AutoMod or the System.
There you can see, for example, who changed the moderation settings, restored a backup, deleted a case, started a lockdown or ran a mass action. This matters because such changes often don't show up in the Discord audit log at all, or only as an action by the bot.
Who can see this page is set per Discord role on the Team page, with the View audit log permission. How long entries stay in the dashboard depends on the plan:
| Plan | Audit log and statistics in the dashboard |
|---|---|
| Free | 14 days |
| Pro | 90 days |
| Studio | 365 days |
The messages in your log channels in Discord are not affected by this, they stay.
How to give your mods sensible dashboard permissions without handing out Administrator is shown in the guide Give moderators bot dashboard access.
An incident from start to finish
Say three channels and the "Moderator" role are missing on Sunday morning. This is how you proceed:
- Open the Discord audit log and filter by deleted channels. You see which account deleted them and when.
- Check the account: filter by this user, without an action filter. Did they do anything else, such as grant permissions or hand out bans? If this looks like a hijacked account, follow the emergency plan for a hacked Discord server.
- Cross-check the Lizbot logs: the log channel for the server area lists the deleted channels and roles with their settings.
- Check the Lizbot audit log: if the change came through the dashboard, it is listed there with source and account.
- Act: remove the account's permissions and repair the damage with a backup. How that works is explained in the guide Back up your Discord server.
So that you don't only notice something like this on Sunday morning, there is automatic detection under Moderation on the Rewind tab. It reads the Discord audit log itself, steps in when an account mass-deletes or mass-bans in a short time, and raises the alarm. Detection is included in every plan, and from Pro you can undo an incident exactly. More in the guide Raid protection.
Checklist
- Only the team has the View Audit Log permission
- The Lizbot role has View Audit Log, so the logs name who acted
- Reason required is switched on in Moderation
- Logging is enabled, log channels are private
- Team channels are under Ignored channels if needed
- A test run in the log channel worked
- Who can view the audit log in the dashboard is set on the Team page
Common mistakes
- Relying on the audit log alone: after 45 days everything is gone, and deleted messages have no content. For disputes you need log channels.
- Leaving log channels public: then everyone sees other people's deleted messages. Log channels belong in a private team category.
- Lizbot lacks View Audit Log: the logs run, but the field showing who acted is missing, and kicks don't appear as kicks at all.
- Everything in one channel on a large server: important entries get lost between voice joins. Switch to Per area.
- Bot actions without a reason: if the audit log only shows the bot, you don't know which person is behind it.
FAQ
How long does Discord keep the audit log?
45 days. Discord deletes older entries automatically, and you cannot extend this period. If you want a longer record, you need log channels from a bot.
Can I see in the audit log what a deleted message said?
No. The audit log only shows that a moderator deleted a message from a certain member. Self-deleted messages don't appear at all. Only someone who logged the content beforehand can see it, such as Lizbot with the Message deleted event.
Why can't I see the audit log in Server Settings?
None of your roles has the View Audit Log or Administrator permission. Ask the server owner or an admin to give it to your team role.
Can I delete entries from the audit log?
No, not even the server owner can. That is intentional: anyone who abuses their permissions should not be able to cover their tracks.
What is the difference between the Discord audit log and the audit log in the Lizbot dashboard?
The Discord audit log records administrative actions across the whole server, whether by people or bots. The Lizbot audit log shows changes made through Lizbot, in the dashboard, in the app or by command, and names the person behind them. The two complement each other.
Does logging with Lizbot cost anything?
No. All log events and log channels are included in the Free plan. Pro and Studio only extend how long logs and statistics are kept in the dashboard: 90 instead of 14 days on Pro, 365 days on Studio.
Matching Lizbot features
- Logging for Discord: messages, roles and voiceLizbot logs deleted and edited messages, joins, roles, voice, channels and moderation in log channels of your choice.
- Moderation and AutoMod for DiscordEvery warning, timeout and ban gets a case number and a reason. Your team sees at a glance what has already happened with a member.
More guides
- Moderation & safety9 min read
Set up Discord AutoMod: block bad words, spam, links and phishing
Set up Discord AutoMod: word filter, spam protection, links, invites and phishing. Discord's own AutoMod vs. a bot AutoMod compared, with recommended settings.
Read more - Moderation & safety8 min read
Set up Discord verification: button, captcha and rules acceptance
Set up Discord verification with a button, captcha or email code, have members accept your rules and keep alt accounts out. Step by step with Lizbot.
Read more - Moderation & safety8 min read
Set up Discord raid protection: protect your server from raids, spam and nukes
Set up Discord raid protection: detect join waves, lockdown, alt accounts, anti-nuke and backups. Protect your server and respond right in an emergency.
Read more
Let Liz handle it for you
Invite Lizbot, set it up in the dashboard, done. The Free plan stays free.
Rather ask first? In the support Discord

