Overview
The Live Logs feature streams the runner log directly to your browser using server-sent events (SSE). Each agent’s logs are filterable from its detail page. Logs capture everything the runner produces for a given agent: startup events, incoming Slack messages, AI backend 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, AI backend 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 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 Running 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 can occur after a runner restart or backend session interruption. SlackHive retries automatically as a new session. You’ll see:Tailing logs from the CLI
For shell access to runner logs, use the CLI:~/.slackhive/logs/runner.log live. Ctrl-C to stop. To print without following:
grep: