Overview
Thewarden logs command manages JSONL log files from previous analyses. View, filter, and clean up historical findings.
Usage
Subcommands
list
List all log files:show
Display contents of a log file:gc
Garbage collect old log files:--keep <n>: Keep N most recent files (default: 10)--days <n>: Keep files from last N days (default: 30)--dry-run: Show what would be deleted
Log File Format
Log files use JSONL (JSON Lines) format:Run record
Skill record
Summary record
Use Cases
Compare runs
Compare findings across runs:Track cost over time
Filter findings
Usejq to filter JSONL:
Archive logs
Configuration
Log file location is configured inwarden.toml:
warden.toml
Automatic Cleanup
Warden automatically cleans up old logs based on configuration:warden.toml
warden(main command)warden logs gc
Examples
List recent runs
Show specific run
Clean up old logs
Dry run cleanup
Tips
Parse logs with jq
Parse logs with jq
JSONL format is easy to parse:
Compare historical trends
Compare historical trends
Track findings over time:
Archive before cleanup
Archive before cleanup
Backup logs before garbage collection:
Related
Output formats
JSONL format specification
Configuration
Configure log retention
Main command
Run analysis and generate logs
Cost tracking
Understanding usage costs