Skip to main content

tollgate logs

Displays recent tool call audit logs from the Tollgate database.

Usage

dotset tollgate logs [options]

Options

OptionDescriptionDefault
-n, --limit <count>Number of entries to show20
--audit-path <path>Custom path for audit database~/.dotset/tollgate.db

Examples

# Show last 20 entries (default)
dotset tollgate logs

# Show last 100 entries
dotset tollgate logs -n 100

# Use custom audit database
dotset tollgate logs --audit-path /var/log/tollgate.db

Output Format

Each log entry displays:
✓ 2024-01-15T10:30:45.123Z postgres:query [allow] (42ms)
✗ 2024-01-15T10:30:50.456Z postgres:execute [deny] → rejected (15ms)
✓ 2024-01-15T10:31:00.789Z filesystem:read_file [prompt] → approved (1523ms)
SymbolMeaning
Tool call succeeded
Tool call failed or was rejected
?Pending or unknown result

Fields

  • Timestamp: ISO 8601 format
  • Server:Tool: Which server and tool was called
  • Policy Decision: [allow], [deny], or [prompt]
  • User Decision: For prompts, shows approved or rejected
  • Duration: Time taken in milliseconds

Use Cases

Debugging

# Check recent activity after an issue
dotset tollgate logs -n 50

Auditing

# Review all tool calls for compliance
dotset tollgate logs -n 1000

Monitoring

# Watch for denied operations
dotset tollgate logs | grep deny
  • export - Export logs for SIEM integration
  • stats - View aggregate statistics