> For the complete documentation index, see [llms.txt](https://docs.securitybot.gg/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.securitybot.gg/settings/logging.md). Agents can also search and read this documentation through its [MCP server](https://docs.securitybot.gg/~gitbook/mcp).

# Logging

Choose where activity is logged, and which verification events.

<figure><img src="https://3518259152-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MQwAXme9ouKllbB2Vwt%2Fuploads%2Fgit-blob-4865c7a564975907531d8b7bdfec5565370ce11b%2Flogging.png?alt=media" alt="Logging page with log channels and verification events"><figcaption></figcaption></figure>

## Log channels

| Channel             | Gets                                                                                                                   |
| ------------------- | ---------------------------------------------------------------------------------------------------------------------- |
| **Moderation logs** | Security Bot moderation commands, except `/clear` and `/raid ban`, plus Anti-Raid timeouts and channel locks           |
| **Security logs**   | Anti-Nuke warnings and punishments, Beast Mode, Anti-Raid lockdowns, review holds and the verification events you pick |

{% tabs %}
{% tab title="Dashboard" %}

1. Open your server on [securitybot.gg](https://securitybot.gg) and go to **Logging**.
2. Pick a **Channel** for each log.
3. Click **Save changes**.
   {% endtab %}

{% tab title="Commands" %}
Leave `channel` empty to create a new channel.

```
/logs mod channel:#mod-logs
/logs security channel:#security-logs
```

{% endtab %}
{% endtabs %}

{% hint style="info" %}
Set a security log channel. Review holds, setup problems and raid alerts all post there.
{% endhint %}

## Verification events

Pick which verification events go to the security log.

| Event                 | Default |
| --------------------- | ------- |
| Members verified      | Off     |
| Wrong answers         | Off     |
| Denied or removed     | On      |
| Possible alt accounts | On      |
| Shared network or IP  | On      |
| Passcode lockouts     | On      |
| Setup problems        | On      |
| Join raids            | On      |

Review holds are always logged, because they carry the **Approve** and **Deny** buttons.

{% tabs %}
{% tab title="Dashboard" %}
On **Logging**, use the toggles under **Verification events**, then click **Save changes**.
{% endtab %}

{% tab title="Commands" %}

```
/logs verification event:Members verified log:True
```

{% endtab %}
{% endtabs %}

## Setup problems

When the bot can't give or remove a verification role, the security log says why and how to fix it. Common fixes:

| Problem                               | Fix                                                           |
| ------------------------------------- | ------------------------------------------------------------- |
| No Manage Roles                       | Give Security Bot's role **Manage Roles**                     |
| Unverified is above the bot           | Drag Security Bot's role above **Unverified**                 |
| The member has a role above the bot   | Drag Security Bot's role above every role new members can get |
| Unverified has moderation permissions | Remove them from the role                                     |
