logs command streams real-time logs from a running or completed Shannon workflow. This provides detailed visibility into agent execution, tool usage, and progress.
Basic Usage
Workflow ID to tail logs for
- Obtained from
./shannon startoutput - Or from
./shannon workspaceslist - Format:
<hostname>_shannon-<timestamp>or<workspace-name>_shannon-<timestamp>
example.com_shannon-1234567890q1-audit_shannon-1234567890audit_resume_1234567890(resumed workflows)
Examples
Tail Logs for Active Workflow
Named Workspace Logs
Resume Workflow Logs
Log Output Format
Shannon outputs structured, human-readable logs:Log Auto-Discovery
Thelogs command automatically locates workflow logs:
- Default location:
./audit-logs/<workflow-id>/workflow.log - Custom output: Searches for
OUTPUTdirectory set duringstart - Workspace mapping: Handles resume workflow IDs (e.g.,
workspace_resume_123) - Recursive search: Searches up to 3 directory levels for custom locations
Log Content
Workflow Events
Phase Transitions
Agent Execution
Parallel Agent Execution
During vulnerability analysis and exploitation phases:Error and Retry Events
Deliverable Generation
Cost and Token Tracking
Error Messages
Workflow Not Found
- Verify workflow ID with
./shannon workspaces - Check Temporal UI for active workflows
- Ensure workflow has started (may take a few seconds)
Custom Output Directory
Log Files Structure
Shannon maintains multiple log files:Workflow Log (workflow.log)
Human-readable, append-only log of all workflow events:- Phase transitions
- Agent start/completion
- Error and retry events
- Cost and token tracking
- Deliverable generation
./shannon logs.
Agent Logs (agent.log)
Detailed execution logs for each agent:- SDK internal messages
- Tool invocations (bash, file operations)
- MCP server interactions
- Low-level errors and stack traces
audit-logs/<workspace-id>/<agent-name>/agent.log
Metrics (metrics.json)
Structured performance data:Integration with Other Tools
Combined Monitoring
Log Filtering
Use standard Unix tools for filtering:Continuous Monitoring
Thelogs command uses tail -f, so it continuously streams new log lines:
Resume Workflow Logs
When resuming workflows, Shannon continues using the original workspace’s log file:Next Steps
Query Progress
Query detailed workflow state and progress
Workspaces
List all workspaces and their status
Temporal UI
Learn about Temporal workflow monitoring
Audit System
Understanding audit log structure
