Skip to content

Audit log

The audit log is a channel where CouchBot writes a short line every time it does something on your server, and every time it tried and couldn’t. It’s the quickest way to answer “why didn’t that announcement go out?”

🟢 12:01:33 Foo went live on Twitch → #streams (jump)
👋 12:03:10 Greeted newmember in #welcome
❌ 12:05:00 Couldn't announce Bar (YouTube) in #videos: missing permissions
⚫ 13:44:02 Foo's Twitch stream ended → marked offline in #streams
  1. Choose where the log goes: /audit channel channel:#couchbot-log. A text channel, an announcement channel, a thread or a forum all work. In a forum, CouchBot creates one post called CouchBot Audit and keeps writing in it.
  2. Turn it on: /audit on.

Pause it any time with /audit off. The channel stays set, so /audit on picks up where it left off. /config shows the audit channel and whether it’s on.

  • Streams announced, and streams marked offline or deleted when they end
  • Videos, shorts, clips and social posts announced
  • Live discovery posts
  • Greetings and goodbyes
  • Roles CouchBot gives or removes: the live role, the join role and reaction roles
  • Announcement channels that were deleted
  • Anything CouchBot tried and couldn’t do, with the reason. The same problem is logged at most once an hour, so a broken channel doesn’t fill the log.

Lines never ping anyone, and links don’t unfurl. Lines are sent in batches every few seconds, so a busy moment arrives as a few messages rather than dozens.

CouchBot writes the log through a webhook it creates in that channel, named CouchBot Audit. That keeps the log separate from CouchBot’s own messages and lets it send lines in bulk. It’s also why CouchBot needs the Manage Webhooks permission.

If CouchBot doesn’t have it, /audit channel says so and changes nothing. Re-invite CouchBot to grant it; you don’t need to remove CouchBot first.

CouchBot forgets the audit log, without posting about it, when:

  • the channel, thread or forum post is deleted,
  • someone deletes the CouchBot Audit webhook (Edit Channel → Integrations → Webhooks), or
  • CouchBot loses Manage Webhooks.

/config then shows no audit channel. Run /audit channel again to set it back up.