Skip to content

Audit Log

A tamper-resistant record of every security event Phantom processes — raids detected, scams flagged, firewall rules tripped, backups taken, lockdowns engaged. Distinct from your Discord server's native audit log; this is the bot's record of bot-relevant events.

What's logged

Every security feature writes here. Examples:

  • Anti-Raid session opened / resolved / reverted
  • Anti-Nuke incident detected + auto-revert outcome
  • Anti-Scam detection (link to the offending message)
  • Firewall rule triggered (which rule, which user, which action taken)
  • Verification challenge passed / failed / expired
  • Backup created / restored
  • Lockdown engaged / lifted
  • Quarantine added / released
  • Scanner run / fix applied / dismissed
  • Honeypot tripped

Plus dashboard actions:

  • Feature toggled on/off (anti-raid enabled/disabled, etc.)
  • Configuration changed (which actor)

What each entry shows

FieldNotes
Event typee.g. anti_raid_resolved, firewall_hit.
Severityinfo / warn / critical.
Sourcebot / dashboard / system.
ActorThe Discord user who triggered it (when known). A friendly fallback name is kept so old entries still read cleanly even if the user has left.
TargetThe thing acted on (user, role, channel, server, or rule) along with what kind it was.
SummaryOne-line human-readable description.
ContextExtra structured detail — diffs, payloads, rule IDs.
WhenTimestamp.

Where it lives

Dashboard: Security → Audit Log. Filterable by event type, severity, source, time range.

Settings

SettingWhat it does
EnabledMaster switch.
Retention (days)How long entries are kept. Default is server-configurable; absolute max is 365 days.
Severity thresholdDrop entries below this severity. Default info (keep everything).

Tips

  • Don't disable. This is the paper trail you need when something goes wrong. Even on small servers, the storage cost is negligible (~MB/year).
  • Set retention to at least 30 days. For most incidents you don't realize you need to investigate until days later.
  • Export periodically. If you're doing a security review, the dashboard's export-to-CSV button gives you a full dump.

Permissions

  • security.view — read the log
  • security.edit — change retention, purge entries, export

Behaviour

  • Entries can only be added by the bot — the dashboard's "purge" requires security.edit.
  • Filtering by event type, severity, and time range stays fast even with very large logs.
  • Old entries past your retention setting are pruned automatically.
  • Every other Security page — they all write here.
  • Logging — the moderation-side log (separate stream, different scope).

Phantom is a product of Hydra Labs. The bot is run as a managed service; you do not need to host it yourself.