Overview
The Live Logs feature streams Docker container log output directly to your browser using server-sent events (SSE). Each agent’s logs are available from its detail page. Logs capture everything the runner produces for a given agent: startup events, incoming Slack messages, Claude SDK calls, MCP tool invocations, memory writes, and errors.Accessing logs
- Open an agent from the dashboard
- Click the Logs tab on the agent detail page
Log levels
SlackHive uses structured logging (Winston) with four levels:| Level | Color | When it appears |
|---|---|---|
error | Red | Unrecoverable failures: Slack auth errors, Claude SDK exceptions, DB connection failures |
warn | Yellow | Recoverable issues: stale session retries, MCP server startup failures, malformed memory files |
info | Default | Normal operation: agent started, message received, memory synced, session created |
debug | Dimmed | Verbose detail: SDK options, session directory paths, MCP server config |
info and above is usually sufficient. Enable debug when diagnosing unexpected behavior.
Log search
The log viewer includes a search bar. Type any string to filter log lines to those containing that text. Useful for finding:- Log lines for a specific user ID (
U012AB3CD) - Log lines for a specific session (
session_key) - All memory sync events (
memory synced) - All MCP-related activity (
mcp__)
What you’ll see in logs
Agent startup
Incoming message
Memory write
MCP tool use
MCP tool invocations appear in the Claude SDK output stream and are rendered in the Slack response as tool-use labels. In logs, you’ll see the MCP proxy management:Session cleanup
Errors
Debugging common issues
Agent not responding in Slack
Check for:[error]lines mentioning Slack token or connection errors[warn]lines about missing or invalid credentials- Whether the agent shows Active status in the dashboard
MCP tools not working
Check for:[error] MCP proxy start failed— the server binary is not found or not executable[warn] MCP envRef not found— the referenced env var key doesn’t exist in the encrypted store[warn] Memory dir watcher error— filesystem permission issues
Memory not persisting
Check for:[warn] Could not parse memory file— the agent wrote a memory file with invalid frontmatter- Absence of
[info] Memory synced to DBlines — the watcher may not have detected the file
Stale session errors
Stale sessions occur when a Claude session ID stored in the database no longer corresponds to an active SDK session (e.g. after a runner restart). SlackHive retries automatically as a new session. You’ll see:Tailing logs from the CLI
For shell access to runner logs, use the CLI:--no-follow to print without following: